run_query
Execute a read-only SQL query on PostgreSQL, MySQL, or SQLite databases. Supports SELECT, WITH, and EXPLAIN.
Instructions
Execute a read-only SQL query (SELECT, WITH, EXPLAIN) on a configured database. Writes are blocked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_id | Yes | Database id from list_databases | |
| sql | Yes | Read-only SQL query | |
| limit | No | Max rows to return (default 100, max 1000) |