preview_remediation
Runs a rollback-safe transactional dry-run of proposed DML on a target table, returning before/after row diffs and generating a transaction-safe SQL script without committing changes.
Instructions
Runs a real transactional dry-run (START TRANSACTION -> pre-SELECT -> DML -> post-SELECT -> ROLLBACK) using DBeaver's connection WITHOUT committing any change. Returns before/after row diff and generates a transaction-safe .sql script.
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>"
},
"name": "preview_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 |