explain_query
Shows PostgreSQL's query plan for a SELECT without executing it, helping you check for slow-query risks before running it on large tables.
Instructions
Show PostgreSQL's query plan for one SELECT without running it (EXPLAIN, no ANALYZE). Use it before a query that might be slow on a large table.
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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||