execute_query
Run server-validated, read-only SELECT queries against DBeaver PostgreSQL connections using structured, parameterized input and bounded results.
Instructions
执行服务端组装的结构化SELECT;只读事务、账号原生读权限与RLS、依赖安全校验、参数绑定和有界结果。
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": "execute_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 |