apply_remediation
Apply database remediations with mandatory row backups and audit logging, then execute atomic, row-count-locked DML on allowed connections.
Instructions
MANDATORY BACKUP + AUDIT COMMIT: Persists full original row backups (JSON + INSERT SQL + rollback.sql) to audit-backups/, executes atomic row-count-locked DML on allowed connections, and logs field-level changes to change-logs/modification_audit.md & .jsonl.
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": {
"table": "<table>",
"where_clause": "<where_clause>",
"dml_sql": "<dml_sql>",
"expected_affected_rows": "<expected_affected_rows>"
},
"name": "apply_remediation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| dml_sql | Yes | ||
| database | No | Target database/schema name on that connection. | |
| connection | No | DBeaver connection name or host (e.g. 'localhost', 'staging-db'). Defaults to default_connection. | |
| where_clause | Yes | ||
| issue_summary | No | ||
| expected_affected_rows | Yes |