Execute non-production MySQL transaction
mysql_execute_transactionExecute 1–20 parameterized INSERT, REPLACE, UPDATE, or DELETE statements atomically on one non-production connection; rolls back on the first error. Rejects production, DDL, and reads.
Instructions
Atomically execute 1-20 parameterized INSERT, REPLACE, UPDATE, or DELETE statements on one non-production connection. Rolls back on the first error. Prod, DDL, reads, transaction control, and session control are rejected.
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": {
"connection_id": "<connection_id>",
"statements": "<statements>"
},
"name": "mysql_execute_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allow_all | No | Explicitly permit transaction UPDATE or DELETE statements without WHERE. | |
| statements | Yes | Ordered INSERT, REPLACE, UPDATE, or DELETE statements committed atomically. | |
| timeout_ms | No | Client-side query timeout in milliseconds, from 1000 through 120000. | |
| connection_id | Yes | Configured connection ID, for example prod-main or test-main. | |
| response_format | No | Response rendering: markdown for humans or json for programmatic processing. | markdown |