mysql_legacy_update
Executes a single UPDATE statement requiring a WHERE clause, returning affected and changed rows. Only active when MYSQL_LEGACY_ALLOW_UPDATE is enabled, preventing unsafe full-table writes.
Instructions
Runs exactly one UPDATE supplied in sql. WHERE is required and cannot be disabled. Off unless MYSQL_LEGACY_ALLOW_UPDATE=true. Returns affectedRows and changedRows. To empty a table use TRUNCATE via mysql_legacy_ddl, not a WHERE-less UPDATE.
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": "mysql_legacy_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | One MySQL UPDATE statement with a WHERE clause. |