execute_unsafe_query
Run any SQL query or command without restrictions. SELECT returns CSV, DML returns row count. Dry-run rolls back changes for safe testing.
Instructions
Execute any SQL statement without restrictions. SELECT returns CSV; DML returns row count. Set auto_commit=false for a dry-run: changes are rolled back after reporting the affected row count. Only available on writable connections.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Any SQL statement: SELECT, DML, DDL, PL/SQL block, etc. | |
| params | No | Bind parameters as key-value pairs. | |
| connection | No | Connection name from list_schemas. Must have readonly=false. | |
| auto_commit | No | If true (default), commits after DML. If false, rolls back — useful for dry-run testing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |