Skip to content

Commit 2f25ada

Browse files
committed
Address comments
1 parent 256587a commit 2f25ada

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/tools/playground/runPipeline.ts

Lines changed: 6 additions & 5 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
};
@@ -75,8 +76,8 @@ interface RunErrorResponse {
7576

7677
export class RunPipeline extends ToolBase {
7778
protected name = "run-pipeline";
78-
protected description =
79-
"Run aggregation pipeline for provided documents without needing an Atlas account, cluster, or collection.";
79+
protected description = `Run MongoDB aggr
80+
egation pipeline for provided documents without needing an Atlas account, cluster, or collection. Can be useful to run ad-hoc pipelines for testing, debugging purposes.`;
8081
protected category: ToolCategory = "playground";
8182
protected operationType: OperationType = "metadata";
8283
protected argsShape = RunPipelineOperationArgs;

0 commit comments

Comments
 (0)