explain
Runs EXPLAIN (FORMAT JSON) on a SQL statement to return cost estimates and a plan summary, helping you inspect query performance before execution.
Instructions
Run EXPLAIN (FORMAT JSON) and attach cost estimate and plan summary.
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 |