Skip to content

Commit 44b9374

Browse files
committed
Revert "update description tests"
This reverts commit fec735f.
1 parent 9c3aee9 commit 44b9374

File tree

2 files changed

+17
-22
lines changed

2 files changed

+17
-22
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 using countDocuments()";
21+
protected description = "Gets the number of documents in a MongoDB collection";
2222
protected argsShape = {
2323
...DbOperationArgs,
2424
...CountArgs,

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

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

1010
describeWithMongoDB("count tool", (integration) => {
11-
validateToolMetadata(
12-
integration,
13-
"count",
14-
"Gets the number of documents in a MongoDB collection using countDocuments()",
15-
[
16-
{
17-
name: "filter",
18-
description:
19-
"The query filter to count documents. Matches the syntax of the filter argument of db.collection.countDocuments()",
20-
type: "object",
21-
required: false,
22-
},
23-
{
24-
name: "query",
25-
description: "Alternative old name for filter. Will be used in db.collection.countDocuments()",
26-
type: "object",
27-
required: false,
28-
},
29-
...databaseCollectionParameters,
30-
]
31-
);
11+
validateToolMetadata(integration, "count", "Gets the number of documents in a MongoDB collection", [
12+
{
13+
name: "query",
14+
description:
15+
"The query filter to count documents. Matches the syntax of the filter argument of db.collection.count()",
16+
type: "object",
17+
required: false,
18+
},
19+
{
20+
name: "filter",
21+
description: "Alternative name for query parameter. The query filter to count documents.",
22+
type: "object",
23+
required: false,
24+
},
25+
...databaseCollectionParameters,
26+
]);
3227

3328
validateThrowsForInvalidArguments(integration, "count", [
3429
{},

0 commit comments

Comments
 (0)