run_select
Run a read-only SQL query to retrieve data from PostgreSQL. Ensures safety by rejecting writes and multi-statement inputs.
Instructions
Run a single read-only SELECT/WITH/EXPLAIN/SHOW statement and return rows.
This tool rejects non-read and multi-statement SQL and caps returned rows. (In readonly access mode the DB session is also read-only at the engine.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||