write_query
Execute INSERT, UPDATE, DELETE, REPLACE, or TRUNCATE statements on MySQL databases. Requires explicit confirmation to run, preventing accidental modifications.
Instructions
Execute INSERT, UPDATE, DELETE, REPLACE, or TRUNCATE. Separate from read_query. Requires confirmed=true after a strong confirmation preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Single INSERT/UPDATE/DELETE/REPLACE/TRUNCATE statement | |
| confirmed | No | Must be true to execute. If omitted/false, returns an impact preview only — nothing runs. |