Skip to content

Commit 5b4430e

Browse files
chore: use Zod.string instead of CommonArgs.string
1 parent 721a7fd commit 5b4430e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/tools/mongodb/delete/dropSearchIndex.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import z from "zod";
12
import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
2-
import { CommonArgs } from "../../args.js";
33
import { DbOperationArgs, MongoDBToolBase } from "../mongodbTool.js";
44
import { formatUntrustedData, type OperationType, type ToolArgs } from "../../tool.js";
55
import { ListSearchIndexesTool } from "../search/listSearchIndexes.js";
@@ -9,9 +9,7 @@ export class DropSearchIndexTool extends MongoDBToolBase {
99
protected description = "Drop a search index or vector search index for the provided database and collection.";
1010
protected argsShape = {
1111
...DbOperationArgs,
12-
indexName: CommonArgs.string()
13-
.nonempty()
14-
.describe("The name of the search or vector search index to be dropped."),
12+
indexName: z.string().nonempty().describe("The name of the search or vector search index to be dropped."),
1513
};
1614
public operationType: OperationType = "delete";
1715

0 commit comments

Comments
 (0)