explain
Explain a SELECT query to view its execution plan. Supports JSON output and optional ANALYZE for runtime statistics.
Instructions
EXPLAIN a SELECT query (JSON format when supported).
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 | ||
| params | No | ||
| analyze | No | Use EXPLAIN ANALYZE when server supports it | |
| database | No | Database/schema name; defaults to connection default_database | |
| connection | No | Named connection from config; defaults to default_connection |