Skip to main content
Glama
SQL MCP Server

SQL MCP Server

by kK-2004

db_delete

Delete rows from a permitted database table using equality conditions in the where object; a where filter is required by default to restrict which rows are removed.

Instructions

Delete rows from an allowed table (where required by default).

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

Input Schema

NameRequiredDescriptionDefault
tableYesTarget table name (must be allowed).
whereNoEquality conditions, e.g. {"id": 1}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden for a destructive operation, yet it says nothing about irreversibility, whether an unfiltered delete can wipe a table, what permissions or allow-list checks apply, or what the call returns. The only behavioral signal is the vague "(where required by default)", which leaves the agent guessing about the blast radius.

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 short sentence with the operation front-loaded and no padding. The trailing parenthetical is the one part that underspecifies rather than clarifies.

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

Completeness2/5

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

For a destructive, no-annotation, no-output-schema tool, the definition omits critical context: whether unfiltered deletes are permitted, how the allow-list is determined, and whether affected-row counts come back. What is present is too thin to let an agent invoke this safely.

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 coverage is 100%, so the baseline would be 3, but the description's sole parameter-related content is "where required by default", which is confusing because the schema marks `where` as optional (only `table` is required). Rather than clarifying the filter semantics, it introduces a tension the agent must resolve on its own.

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?

"Delete rows from an allowed table" names a specific verb and resource, which clearly separates it from db_insert and db_query. The qualifier "allowed table" signals a permission/whitelist constraint but never defines what makes a table allowed, so the scope is not fully resolved.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance and no routing to siblings such as db_query or db_insert. The only hint of a usage constraint is the parenthetical about `where`, which is stated ambiguously rather than as a clear rule.

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