Skip to main content
Glama

preview_remediation

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
tableYes
dml_sqlYes
databaseNoTarget database/schema name on that connection.
connectionNoDBeaver connection name or host (e.g. 'localhost', 'staging-db'). Defaults to default_connection.
where_clauseYes
issue_summaryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, and the description reinforces this with concrete mechanics: START TRANSACTION, pre/post SELECT, ROLLBACK, no commit. It also discloses outputs (before/after diff, generated .sql script), adding value beyond the annotations, but does not mention permissions, connection state, or failure behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence that front-loads the transaction sequence and the no-commit guarantee. Every clause carries information; only minor cost is the parenthetical step list being slightly dense.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Behavior is well covered for a six-parameter tool with no output schema, but the definition is silent on the meaning and format of the required SQL parameters and on how connection/database selection interacts with defaults. An agent could call it but would be guessing at where_clause and dml_sql conventions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33% and the three required parameters (table, where_clause, dml_sql) carry no schema descriptions at all. The description never explains their format, expected SQL dialect, or required shape of where_clause, so it fails to compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: it runs a transactional dry-run of DML against a table and returns a row diff plus a .sql script. The 'WITHOUT committing any change' clause cleanly separates it from a real apply, though it never names apply_remediation explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: an agent can infer this is the safe pre-check before applying a remediation. There is no explicit when-to-use/when-not guidance and no mention of the sibling apply_remediation or open_remediation_in_dbeaver.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.