Connect to a PostgreSQL database and run parameterized SQL queries. Reads are enabled by default; writes require explicit per-connection approval.
native://postgres/query
| Param | Type | Required | Description |
|---|---|---|---|
| sql | string | required | One parameterized PostgreSQL statement. Use $1, $2, ... placeholders for values. |
| params | array | optional | Optional scalar values matching the SQL placeholders. |
| maxRows | integer | optional | Maximum number of rows to return (1-1000; defaults to 100). |
native://postgres/list_tables
| Param | Type | Required | Description |
|---|---|---|---|
| schema | string | optional | Schema name; defaults to public. |
native://postgres/describe_table
| Param | Type | Required | Description |
|---|---|---|---|
| schema | string | optional | Schema name; defaults to public. |
| table | string | required | Table name to describe. |