list_indexes
List all indexes on a MongoDB collection to review index definitions and optimize query performance.
Instructions
List all indexes on a 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>"
},
"name": "list_indexes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | The database name | |
| collection | Yes | The collection name |