mongo_list_indexes
List all indexes in a MongoDB collection to review index configuration and optimize query performance.
Instructions
List all indexes on a MongoDB 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": {
"collection": "<collection>"
},
"name": "mongo_list_indexes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | ||
| collection | Yes | ||
| connectionId | No | Id of the mongodb connection to use. Optional when only one mongodb connection is configured. |