Skip to content

Commit 39b23db

Browse files
committed
diff approach: update prompts
1 parent a110273 commit 39b23db

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/tools/mongodb/read/count.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ export const CountArgs = {
88
.record(z.string(), z.unknown())
99
.optional()
1010
.describe(
11-
"The query filter to count documents. Matches the syntax of the filter argument of db.collection.count()"
11+
"A filter/query parameter. Allows users to filter the documents to count. Matches the syntax of the filter argument of db.collection.count()."
1212
),
1313
};
1414

1515
export class CountTool extends MongoDBToolBase {
1616
protected name = "count";
17-
protected description = "Gets the number of documents in a MongoDB collection";
17+
protected description = "Gets the number of documents in a MongoDB collection using db.collection.count() and query as an optional filter parameter";
1818
protected argsShape = {
1919
...DbOperationArgs,
2020
...CountArgs,

tests/integration/tools/mongodb/read/count.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import {
88
} from "../../../helpers.js";
99

1010
describeWithMongoDB("count tool", (integration) => {
11-
validateToolMetadata(integration, "count", "Gets the number of documents in a MongoDB collection", [
11+
validateToolMetadata(integration, "count", "Gets the number of documents in a MongoDB collection using db.collection.count() and query as an optional filter parameter", [
1212
{
1313
name: "query",
1414
description:
15-
"The query filter to count documents. Matches the syntax of the filter argument of db.collection.count()",
15+
"A filter/query parameter. Allows users to filter the documents to count. Matches the syntax of the filter argument of db.collection.count().",
1616
type: "object",
1717
required: false,
1818
},

0 commit comments

Comments
 (0)