Skip to main content
Glama
dbadmin-mcp

dbadmin-mcp

by legavaz

delete_apply

Applies a previewed row deletion by token: creates a backup in the backup schema, runs the DELETE, and rolls back on error. Requires token and DELETE confirmation.

Instructions

Выполнить удаление по токену preview: сначала резервная копия в схему backup, потом DELETE, при ошибке rollback.

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": {
      "token": "<token>",
      "confirm": "<confirm>"
    },
    "name": "delete_apply"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYes
confirmYesстрока DELETE

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden and does disclose real behavior: it backs up to a 'backup' schema before the DELETE and rolls back on error, which is valuable transactional context for a destructive operation. However, it omits permissions required, token lifetime/expiry, whether the backup is retained or cleaned up, and what happens after a successful commit.

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

Conciseness5/5

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

A single imperative sentence with three operative clauses in execution order: backup, then DELETE, then rollback on error. Nothing is redundant, and the sequence is front-loaded so an agent learns the flow immediately.

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 destructive database mutation with no annotations, no output schema, and one of two parameters undocumented, the description covers the core mechanism but leaves meaningful gaps: confirmation-string semantics, permissions, and post-success state are unexplained. An agent can call it but may not fully understand the safety envelope.

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

Parameters3/5

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

Schema coverage is 50%: the 'confirm' parameter has a description ('строка DELETE') while 'token' has none. The description partly compensates by explaining that the token comes from a preview step, but it never mentions the 'confirm' parameter or that it must be the literal string DELETE, leaving the safety-critical confirmation semantics to the schema alone.

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: 'Выполнить удаление по токену preview' (perform deletion using a preview token). The mention of a preview token implicitly separates it from the delete_preview sibling, but it never names that tool or explicitly contrasts preview from apply, so an agent must infer the pairing.

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: the phrase 'по токену preview' signals this must be called after a preview step produces a token. There is no explicit when-not guidance, no statement that delete_preview should run first, and no mention of token validity or prerequisites.

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