explain_query
Analyze SQL query execution plans on the MCP Postgres Server by generating EXPLAIN outputs in text, JSON, XML, or YAML formats for optimized database performance insights.
Instructions
Get query execution plan (EXPLAIN)
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 |
|---|---|---|---|
| analyze | No | ||
| buffers | No | ||
| costs | No | ||
| format | No | ||
| sql | Yes |