execute
Execute data modification SQL statements (INSERT, UPDATE, DELETE, DDL). Validate without executing by setting dryRun=true; confirm destructive operations like DROP or TRUNCATE before execution.
Instructions
Execute a data modification SQL statement (INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, etc.). Set dryRun=true to validate without executing — uses EXPLAIN for DML, or previews the SQL for DDL. Always confirm destructive operations (DROP, TRUNCATE, DELETE without WHERE) with the user before executing. Not available in read-only mode.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL statement to execute. SELECT statements are not allowed here; use the "query" tool instead. | |
| dryRun | No | If true, validates the statement via EXPLAIN without executing it. Defaults to false. |