delete_rows
Delete rows safely with mandatory filters, optional optimistic concurrency checks, and commit validation to prevent unintended data loss.
Instructions
Delete rows with mandatory filters, optimistic predicates, and commit guards
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": {
"schema_name": "<schema_name>",
"relation_name": "<relation_name>",
"where": "<where>"
},
"name": "delete_rows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| where | Yes | Mandatory structured target filter | |
| returning | No | Columns returned after commit validation | |
| concurrency | No | Optional optimistic concurrency predicates | |
| schema_name | Yes | Exact schema name | |
| expected_rows | No | Optional exact affected row count | |
| relation_name | Yes | Exact table name | |
| max_affected_rows | No | Hard mutation ceiling |