list_indexes
Retrieves the indexes of a MongoDB collection, including keys and options such as unique, sparse, TTL, and partial filters, to help inspect and manage query performance.
Instructions
Indexes of a collection with keys and options (unique, sparse, TTL, partial filter).
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": "list_indexes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | ||
| collection | Yes | ||
| connection | No |