explain_query
Shows a SELECT query's execution plan without running it, revealing full scans, indexes used, and estimated rows so you can judge and fix slow queries.
Instructions
Show the database's execution plan for a SELECT without running it. On MySQL look at 'type' (ALL = full scan), 'key' (index used), and 'rows' (estimated rows) to judge whether a query is slow.
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": {
"query": "<query>"
},
"name": "explain_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| schema | No | ||
| profile | No | ||
| database | No |