Execute a write
executeRun INSERT, UPDATE, or DELETE statements with a preview of affected rows and human approval required. Refuses UPDATE or DELETE without a WHERE clause.
Instructions
Runs a single INSERT, UPDATE or DELETE. The change is first executed in a rolled-back transaction to measure exactly how many rows it affects, then that number is shown to a human for approval. UPDATE/DELETE without a WHERE clause is always refused.
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>",
"reason": "<reason>"
},
"name": "execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | A single INSERT, UPDATE or DELETE statement | |
| params | No | Values for $1, $2 … placeholders | |
| reason | Yes | Why this change is needed — shown to the approver |