explain
Get a SQL query's execution plan to identify performance issues without executing it. Optionally run EXPLAIN ANALYZE for actual execution and timing.
Instructions
Show the query execution plan for a SQL query using EXPLAIN. Does not execute the 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": {
"sql": "<sql>"
},
"name": "explain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL query to explain | |
| analyze | No | If true, use EXPLAIN ANALYZE to actually run the query and show real timing. Use with caution on production. |