run_query
Executes read-only SQL queries like SELECT, WITH, SHOW, DESCRIBE, EXPLAIN against MySQL databases, with optional per-call database override without altering active connection.
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 |