execute_query
Run read-only SQL on Postgres via DBeaver, with automatic SSH tunnel handling and retrieval of all result sets.
Instructions
Run read-only SQL inside a READ ONLY transaction. Multiple SELECTs return every result set (not only the last). SSH tunnels open automatically.
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": {
"name": "<name>",
"query": "<query>"
},
"name": "execute_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Connection name or id, e.g. "ACME LIVE" | |
| query | Yes | SELECT / WITH / EXPLAIN / SHOW. Multiple statements allowed. | |
| maxRows | No | Row cap per statement (default 200) | |
| timeoutMs | No | Statement timeout in ms (default 30000) |