execute_sql
Execute SQL statements such as SELECT, INSERT, UPDATE, DELETE, SHOW, and DESCRIBE against a MySQL database. Supports cross-database queries using fully qualified names.
Instructions
Execute a SQL statement against the MySQL server. Use for SELECT, DML (INSERT/UPDATE/DELETE), SHOW, DESCRIBE, and ad-hoc queries. Supports cross-database queries using database.table notation. Single statements only — use fully qualified names instead of USE statements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The SQL statement to execute. Single statements only. |