Run a write statement (disabled)
executeRun INSERT, UPDATE, DELETE, or DDL statements against PostgreSQL. Requires the server to be started with PG_ALLOW_WRITE=true; otherwise, it returns an error and makes no changes.
Instructions
Run a data-modifying SQL statement (INSERT/UPDATE/DELETE or DDL). Currently DISABLED: the server is read-only, so this returns an error and changes nothing. To enable writes, the operator must start the server with PG_ALLOW_WRITE=true.
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": "execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | One INSERT / UPDATE / DELETE / DDL statement. Use $1, $2, ... for parameters. | |
| params | No | Positional parameter values bound to $1, $2, ... placeholders. |