Skip to content

Commit 3df5eca

Browse files
committed
Address comments
1 parent 256587a commit 3df5eca

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/tools/playground/runPipeline.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,21 @@ const DEFAULT_SYNONYMS: Array<Record<string, unknown>> = [];
3939
export const RunPipelineOperationArgs = {
4040
documents: z
4141
.array(z.record(z.string(), z.unknown()))
42+
.max(500)
4243
.describe("Documents to run the pipeline against. 500 is maximum.")
4344
.default(DEFAULT_DOCUMENTS),
4445
aggregationPipeline: z
4546
.array(z.record(z.string(), z.unknown()))
46-
.describe("Aggregation pipeline to run on the provided documents.")
47+
.describe("MongoDB aggregation pipeline to run on the provided documents.")
4748
.default(DEFAULT_PIPELINE),
4849
searchIndexDefinition: z
4950
.record(z.string(), z.unknown())
50-
.describe("Search index to create before running the pipeline.")
51+
.describe("MongoDB search index definition to create before running the pipeline.")
5152
.optional()
5253
.default(DEFAULT_SEARCH_INDEX_DEFINITION),
5354
synonyms: z
5455
.array(z.record(z.any()))
55-
.describe("Synonyms mapping to create before running the pipeline.")
56+
.describe("MongoDB synonyms mapping to create before running the pipeline.")
5657
.optional()
5758
.default(DEFAULT_SYNONYMS),
5859
};
@@ -76,7 +77,7 @@ interface RunErrorResponse {
7677
export class RunPipeline extends ToolBase {
7778
protected name = "run-pipeline";
7879
protected description =
79-
"Run aggregation pipeline for provided documents without needing an Atlas account, cluster, or collection.";
80+
"Run MongoDB aggregation pipeline for provided documents without needing an Atlas account, cluster, or collection. The tool can be useful for running ad-hoc pipelines for testing or debugging.";
8081
protected category: ToolCategory = "playground";
8182
protected operationType: OperationType = "metadata";
8283
protected argsShape = RunPipelineOperationArgs;

0 commit comments

Comments
 (0)