execute_query
Run SQL queries through a risk-tiered safety pipeline that requires confirmation and authorization for write operations.
Instructions
Execute a SQL query through the risk-tiered safety pipeline.
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": {
"connection": "<connection>",
"sql": "<sql>"
},
"name": "execute_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | No | OS PIN for write authorization. | |
| sql | Yes | SQL statement to execute. | |
| confirmed | No | Required for write operations. | |
| connection | Yes | Database alias (from connect_database). | |
| output_mode | No | Override the connection's default output mode. | |
| confirmation_phrase | No | Required for HIGH risk — typed phrase e.g. "confirm update 12000 rows". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |