Run Read-Only Query
run_queryExecute read-only SQL queries (SELECT, WITH, SHOW, DESCRIBE, EXPLAIN) against a MySQL database.
Instructions
Execute a read-only SQL query (SELECT, WITH, SHOW, DESCRIBE, EXPLAIN only) against the active connection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | SQL query to execute | |
| database | No | Optional database to read from for this call only, without changing the active connection |