mongo_explain
Retrieve execution plan and index scan statistics for MongoDB find queries to analyze performance and optimize indexes.
Instructions
Get execution plan and index scan statistics for a MongoDB find query.
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_explain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | JSON string filter query. | |
| database | No | ||
| verbosity | No | Explain verbosity: queryPlanner | executionStats | allPlansExecution. | queryPlanner |
| collection | Yes | ||
| connectionId | No | Id of the mongodb connection to use. Optional when only one mongodb connection is configured. |