write_query
Executes INSERT, UPDATE, DELETE, or DDL statements atomically, running immediately when policy permits or returning a pending approval request for review.
Instructions
Execute a write statement (INSERT, UPDATE, DELETE, or DDL). If the operation is configured for auto-approval in policy, it executes immediately in an atomic transaction; otherwise, it returns a pending approval request.
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": "write_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL statement to execute. | |
| params | No | Optional query parameters. | |
| database | No | Optional database name. | |
| userConfirmed | No | Set to true if user has explicitly confirmed execution in chat. |