execute
Run parameterized INSERT, UPDATE, or DELETE statements against PostgreSQL to modify data securely, preventing SQL injection.
Instructions
Execute a parameterized INSERT, UPDATE, or DELETE statement.
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 | Parameterized DML SQL statement (use $1, $2, etc. for parameters) | |
| params | No | Optional list of statement parameters |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||