mysql_legacy_insert
Execute a single MySQL INSERT statement on legacy databases, returning insertId and affectedRows. Requires MYSQL_LEGACY_ALLOW_INSERT=true and supports ON DUPLICATE KEY UPDATE.
Instructions
Runs exactly one INSERT supplied in sql. Off unless MYSQL_LEGACY_ALLOW_INSERT=true. Returns insertId and affectedRows. INSERT ... ON DUPLICATE KEY UPDATE is accepted and can overwrite existing rows. For UPDATE/DELETE/DDL use mysql_legacy_update, mysql_legacy_delete, or mysql_legacy_ddl.
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_insert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | One MySQL INSERT statement. |