Run write statement
run_writeRun a single INSERT, UPDATE, or DELETE statement, blocking DDL and unscoped writes unless explicitly enabled. Add RETURNING * to view affected rows.
Instructions
Run a single INSERT/UPDATE/DELETE. DDL (DROP/TRUNCATE/ALTER/…) and unscoped UPDATE/DELETE (no WHERE) are refused unless allowDangerous=true. Add "RETURNING *" to see affected rows.
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": "run_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | A single write statement. | |
| params | No | Positional parameters for $1, $2, … | |
| allowDangerous | No | Override guards for DDL / unscoped writes. |