File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1+ import z from "zod" ;
12import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js" ;
2- import { CommonArgs } from "../../args.js" ;
33import { DbOperationArgs , MongoDBToolBase } from "../mongodbTool.js" ;
44import { formatUntrustedData , type OperationType , type ToolArgs } from "../../tool.js" ;
55import { 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
You can’t perform that action at this time.
0 commit comments