explain_analyze
Get a PostgreSQL query execution plan with actual costs to identify performance bottlenecks, using parameterized SQL for safe analysis.
Instructions
Get query execution plan with costs using EXPLAIN ANALYZE.
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_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Parameterized SQL query to analyze (use $1, $2, etc. for parameters) | |
| params | No | Optional list of query parameters |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||