run_script
Execute multi-statement SQL scripts on MySQL or MariaDB databases. Commit writes with confirmed=true or use sandbox mode for safe testing with automatic rollback.
Instructions
Execute a multi-statement SQL script. Use confirmed=true to commit writes.
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": {
"script": "<script>"
},
"name": "run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| sandbox | No | When true, wrap writes in a transaction and ROLLBACK (default from config) | |
| database | No | Database/schema name; defaults to connection default_database | |
| confirmed | No | Must be true for destructive operations when confirmation is required | |
| delimiter | No | ||
| connection | No | Named connection from config; defaults to default_connection |