explain_query
Analyze a SELECT query's execution plan using EXPLAIN to identify performance bottlenecks and optimize database operations.
Instructions
Run EXPLAIN on a SELECT query and provide analysis
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": {
"sql": "<sql>"
},
"name": "explain_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SELECT statement to analyze | |
| profile | No | Profile name (defaults to current profile) |