mongo_drop_index
Remove a specified index from a MongoDB collection to manage indexes and optimize storage.
Instructions
Drop an index by name on a MongoDB collection. Blocked when readOnly mode is enabled.
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": {
"collection": "<collection>",
"indexName": "<indexName>"
},
"name": "mongo_drop_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | ||
| indexName | Yes | The name of the index to drop. | |
| collection | Yes | ||
| connectionId | No | Id of the mongodb connection to use. Optional when only one mongodb connection is configured. |