explain_query
Run EXPLAIN on SELECT or WITH queries to analyze query execution plans, returning results in traditional or JSON format.
Instructions
Run EXPLAIN on a SELECT / WITH query (traditional or JSON format).
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 or WITH … SELECT statement to explain | |
| format | No | EXPLAIN output format (default traditional) |