analyze_query
Validate structured PostgreSQL queries before execution: check tables, columns, permissions, and types, then return a structure summary without reading rows.
Instructions
校验结构化查询的表、字段、权限和类型,返回查询结构摘要;不读取业务行。
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": "analyze_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 |