Run database write
postgres_executeRun a SINGLE mutating statement (INSERT/UPDATE/DELETE or DDL) against a relational database connection that YOU OWN and that has 'Allow writes' enabled. Shared connections are read-only and are rejected. Accepts one statement in the connection engine's native SQL; multiple statements are rejected. Use postgres_query for read-only queries.
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": "postgres_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | A single mutating statement (INSERT/UPDATE/DELETE or DDL) in the connection engine's native SQL | |
| connection | Yes | Name of the connection to run the write against |