run_query
Execute a read-only PostgreSQL SELECT and return columns and rows, capped by a row limit with truncation status; writes, multiple statements, and non-allow-listed tables are refused.
Instructions
Run one read-only SQL SELECT (PostgreSQL dialect) and return columns and rows.
At most limit rows come back (capped by the server's row limit); truncated says whether more
rows matched. Writes, multiple statements and non-allow-listed tables are refused.
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": "run_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||