Skip to content

Commit fec735f

Browse files
committed
update description tests
1 parent 873560f commit fec735f

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/tools/mongodb/read/count.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const CountArgs = {
1818

1919
export class CountTool extends MongoDBToolBase {
2020
protected name = "count";
21-
protected description = "Gets the number of documents in a MongoDB collection";
21+
protected description = "Gets the number of documents in a MongoDB collection using countDocuments()";
2222
protected argsShape = {
2323
...DbOperationArgs,
2424
...CountArgs,

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,16 @@ 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 countDocuments()", [
1212
{
13-
name: "query",
14-
description:
15-
"The query filter to count documents. Matches the syntax of the filter argument of db.collection.count()",
13+
name: "filter",
14+
description: "The query filter to count documents. Matches the syntax of the filter argument of db.collection.countDocuments()",
1615
type: "object",
1716
required: false,
1817
},
1918
{
20-
name: "filter",
21-
description: "Alternative name for query parameter. The query filter to count documents.",
19+
name: "query",
20+
description: "Alternative old name for filter. Will be used in db.collection.countDocuments()",
2221
type: "object",
2322
required: false,
2423
},

0 commit comments

Comments
 (0)