execute_dml_rollback_first
Dry-run an INSERT, UPDATE, DELETE, or MERGE in a rolled-back transaction to verify its validity and affected row count before applying it for real with execute_dml.
Instructions
Execute an INSERT, UPDATE, DELETE or MERGE inside a transaction that is immediately rolled back. Nothing is persisted; the tool only proves the statement is valid and reports the number of rows affected. Call execute_dml afterwards to apply the change for real.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sql": "<sql>"
},
"name": "execute_dml_rollback_first"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | A single INSERT, UPDATE, DELETE or MERGE statement to dry-run (executed then rolled back). |