Execute multiple SQL statements
execute_sql_multiExecute multiple SQL statements sequentially, reporting success or failure per statement and stopping at the first error unless continue_on_error is set. No transaction rollback.
Instructions
Execute several SQL statements sequentially, preserving order, and report success/failure per statement with statement-level errors. Stops at the first failure unless continue_on_error=true (remaining statements are reported as 'skipped'). There is no transaction: completed statements are not rolled back. Safety is the union of all statements' classifications (any destructive statement requires confirm=true).
Safety classification: depends on input (DESTRUCTIVE, EXECUTION, READ_ONLY, SECURITY_SENSITIVE, WRITE).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Default schema. | |
| script | No | A SQL script; split on top-level semicolons (comments/literals respected). | |
| catalog | No | Default catalog. | |
| confirm | No | Set to true ONLY after the user has reviewed the plan returned by a previous call with status 'confirmation_required'. Required for destructive/security-sensitive actions. | |
| dry_run | No | If true, validate and return the planned change without executing it. | |
| row_format | No | 'arrays' (compact, aligned with columns) or 'objects' (one dict per row). | arrays |
| statements | No | Statements to run in order. Alternatively pass `script`. | |
| warehouse_id | No | SQL warehouse id. If omitted: DBX_MCP_DEFAULT_WAREHOUSE_ID, else automatic selection (reported in the response). | |
| continue_on_error | No | Keep executing after a failed statement (default: stop at first failure). | |
| max_rows_per_statement | No | Row cap per statement result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| page | No | ||
| plan | No | ||
| tool | Yes | ||
| action | No | ||
| safety | No | ||
| status | No | success | |
| summary | Yes | ||
| warnings | No | ||
| next_steps | No | Suggested follow-up calls. | |
| request_id | No |