execute_sql
Run bounded read-only SQL queries against PostgreSQL to inspect data, with configurable row and cell limits plus truncation notices when output is capped.
Instructions
Execute a read-only SQL query. Long cells are shortened; pass max_cell to read more. The result is also capped at 32768 bytes, whatever max_rows says; the footer says so when it is cut.
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_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL to run | |
| max_cell | No | Maximum characters per cell before it is shortened (default 200, at most 10000) | |
| max_rows | No | Maximum rows to return (default 100, at most 1000) |