Select rows
select_rowsRead rows from a PostgreSQL table using equality filters instead of writing SQL, with schema allowlists, row caps, and automatic redaction of secret-like columns.
Instructions
Read rows from one table with equality filters — no SQL needed, and held to the schema allowlist. Results are capped at POSTGRES_MAX_ROWS; secret-like columns are redacted.
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": {
"schema": "<schema>",
"table": "<table>"
},
"name": "select_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows (capped at POSTGRES_MAX_ROWS) | |
| table | Yes | Table or view name | |
| where | No | Equality filters, e.g. { "status": "open", "deleted_at": null } | |
| schema | Yes | Schema name | |
| columns | No | Columns to return (default all) | |
| orderBy | No | Sort order, e.g. [{ "column": "created_at", "desc": true }] |