Run SELECT
run_selectValidate and run read-only SQL queries, rejecting writes, DDL, and unsafe statements before execution.
Instructions
Validate and run a read-only SQL query. Writes, DDL, and other unsafe statements are rejected before execution.
Example: run_select(sql='SELECT id, email FROM users LIMIT 10', max_rows=1000)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| database | No | Optional: target a configured secondary (read-only) database by name; omit for the primary. Call list_databases to see the configured ids. | |
| max_rows | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| columns | Yes | ||
| row_count | Yes | ||
| truncated | Yes |