drop_index
Removes a MongoDB index by name from a collection; the _id index cannot be dropped.
Instructions
Drop an index by name (see list_indexes). The _id index cannot be dropped.
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>",
"name": "<name>"
},
"name": "drop_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| database | No | ||
| collection | Yes | ||
| connection | No |