explain_query
Generate a cost summary and sanitized plan tree with hidden condition values for a server-generated structured SELECT read plan without running ANALYZE or executing the query.
Instructions
对服务端生成的结构化SELECT读取计划成本摘要;不运行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": {
"connection": "<connection>",
"database": "<database>",
"schema": "<schema>",
"query": "<query>"
},
"name": "explain_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| schema | Yes | 所选database中的精确schema名字;未知时先用list_schemas或省略search_catalog的schema跨schema搜索。 | |
| database | Yes | 通过list_databases发现的精确PostgreSQL数据库名;不得猜测或传地址。 | |
| connection | Yes | DBeaver中已有PostgreSQL连接的显示名称或连接ID;不得传地址、账号或密码。 | |
| timeout_ms | No |