run_write_query
Execute INSERT, UPDATE, DELETE, or DDL statements in PostgreSQL when write mode is enabled, with optional role and parameterized values.
Instructions
Execute INSERT/UPDATE/DELETE/DDL statements when write mode is enabled (FR-006)
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_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL write/DDL statement to execute (e.g. INSERT, UPDATE, DELETE, CREATE TABLE) | |
| role | No | Optional PostgreSQL role to assume (SET ROLE) for this write query only | |
| params | No | Optional parameterized query values ($1, $2, etc.) |