Execute Mutation
execute_mutationValidates MySQL mutation safety, runs statements in a transaction, and returns affected row counts; blocks unconstrained UPDATE/DELETE and requires confirmation for destructive DDL.
Instructions
Validate mutation safety, execute inside a transactional context, and return affected row counts.
Blocks unconstrained UPDATE / DELETE unless allow_unfiltered=True.
Requires confirmed=True for destructive DDL (DROP, TRUNCATE, ALTER).
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_mutation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| confirmed | No | ||
| allow_unfiltered | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||