drop-index
Remove a specified index from a MongoDB database collection. Specify database, collection, index name, and index type to delete classic or search indexes.
Instructions
Drop an index for the provided database and collection.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"database": "<database>",
"collection": "<collection>",
"indexName": "<indexName>",
"type": "<type>"
},
"name": "drop-index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The type of index to be deleted. Use 'classic' for standard indexes and 'search' for atlas search and vector search indexes. | |
| database | Yes | Database name | |
| indexName | Yes | The name of the index to be dropped. | |
| collection | Yes | Collection name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dropped | Yes | ||
| database | Yes | ||
| indexName | Yes | ||
| collection | Yes |