execute_query
Execute SQL queries with parameters through a secure SSH tunnel to PostgreSQL, with result limits and truncation flags.
Instructions
Execute SQL with optional parameters. Results are capped by MAX_ROWS and include a truncated flag.
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": "execute_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL to execute | |
| params | No | Parameters for $1, $2, ... |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |