Skip to main content
Glama

open_remediation_in_dbeaver

Idempotent

Back up original rows and log an audit entry, then open the transaction-wrapped remediation SQL in DBeaver for human review and COMMIT.

Instructions

MANDATORY BACKUP + AUDIT HANDOFF: First backs up original rows (JSON + INSERT SQL + rollback.sql) to audit-backups/ and appends an audit entry to change-logs/, then opens the transaction-wrapped .sql script directly in DBeaver bound to that connection for human review and COMMIT.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "open_remediation_in_dbeaver"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableNo
dml_sqlNo
databaseNoTarget database/schema name on that connection.
connectionNoDBeaver connection name or host (e.g. 'localhost', 'staging-db'). Defaults to default_connection.
script_pathNo
where_clauseNo
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 only say readOnly=false, destructive=false, openWorld=true, idempotent=true; the description adds the important detail that this tool writes backup artifacts (JSON, INSERT SQL, rollback.sql) and an audit entry before any human action, and that the DML is not committed by the tool itself. What is missing is failure behavior (e.g., what happens if audit-backups/ already exists or the connection is unresolvable) and whether the tool returns any handle. Note a mild tension: an append-to-log step is not naturally idempotent, though this does not directly contradict the 'opens for human COMMIT' claim.

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 front-loaded sentence with an explicit 'First ... then ...' sequence and no filler. The all-caps label and run-on packing of three distinct actions slightly hurt scanability, but every clause carries information.

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?

For a 7-parameter, zero-required, no-output-schema tool, the description covers the write side effects and the human-in-the-loop contract well. It leaves too much unstated about parameter roles, return behavior, and error conditions for an agent to call it confidently without inspecting the schema.

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 29% (2 of 7 parameters), so the description carries most of the burden. It gives indirect meaning to connection ('bound to that connection') and hints at where_clause via 'original rows', but table, dml_sql, script_path, and issue_summary are never explained, including which one supplies the script that gets opened.

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 names concrete verbs and artifacts: back up original rows to audit-backups/, append an audit entry to change-logs/, and open a transaction-wrapped .sql script in DBeaver. It implicitly separates itself from execute-style siblings by stating the script is opened for human review and COMMIT, but it never names preview_remediation or apply_remediation, so the differentiation must be inferred.

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 only implied by the 'for human review and COMMIT' clause and the 'MANDATORY' label, which suggest this is the hand-off path rather than the auto-execute path. There is no explicit statement of when to choose this over preview_remediation or apply_remediation, and no prerequisites or exclusions are given.

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