Skip to main content
Glama
dbadmin-mcp

dbadmin-mcp

by legavaz

delete_preview

Preview rows matching a SQL condition before deletion, returning row counts, data volume, samples, foreign-key references, and a token; no rows are removed.

Instructions

Предпросмотр удаления по отбору: сколько строк, объём, примеры, FK-ссылки, token. Ничего не удаляет.

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": "<where>"
    },
    "name": "delete_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoсколько строк удалять за раз (по умолчанию 10000)
tableYes
whereYesSQL-условие без инструкций
connectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does the most important thing: 'Ничего не удаляет' explicitly declares the call non-destructive and the token output tells the agent it must be a precursor to a real deletion. It omits permissions required, whether the token expires, and cost/limits of previewing a large filter.

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 compact sentence, front-loaded with the operation ('Предпросмотр удаления по отбору') and closed with the safety statement. The colon-separated output list is efficient; no filler.

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?

There is no output schema, and the description usefully enumerates the returned artifacts (counts, volume, examples, FK links, token), which compensates well for that gap. However, for a 4-parameter tool with two undocumented parameters and no annotations, the definition leaves the agent guessing about 'connection' and 'table' semantics and about token lifetime.

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%: 'limit' and 'where' are documented in the schema, while 'table' and 'connection' are bare. The description adds no parameter-level meaning at all — it mentions filtering only implicitly through 'по отбору' and never explains how 'limit' interacts with the preview or token. Baseline 3 applies since the schema covers half the parameters, but the description could have compensated for the uncovered ones and does not.

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 a specific operation — a deletion preview scoped by a filter — and enumerates what it yields (row count, volume, examples, FK references, token), so an agent can tell it is the dry-run step of a delete flow. It does not name delete_apply or delete_script explicitly, so sibling differentiation is inferred from the preview semantics rather than stated.

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 word 'Предпросмотр' and the returned 'token' strongly suggest calling this before an actual delete, but the description never says 'use delete_apply with the returned token' or when-not to use it. An agent must infer the workflow from sibling names and the token mention.

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