mysql_legacy_delete
Delete rows from legacy MySQL with a mandatory WHERE clause, returning affected rows. Requires explicit enablement via MYSQL_LEGACY_ALLOW_DELETE to prevent accidental full-table deletions.
Instructions
Runs exactly one DELETE supplied in sql. WHERE is required and cannot be disabled. Off unless MYSQL_LEGACY_ALLOW_DELETE=true. Returns affectedRows. To empty a table use TRUNCATE via mysql_legacy_ddl, not a WHERE-less DELETE.
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_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | One MySQL DELETE statement with a WHERE clause. |