Skip to main content
Glama
MCP MySQL Server

MCP MySQL Server

delete

Remove rows from a MySQL table that match a specified WHERE condition, enabling targeted cleanup without dropping the table.

Instructions

Delete rows from a table based on a condition

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": {
      "tableName": "<tableName>",
      "condition": "<condition>"
    },
    "name": "delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
conditionYesWHERE clause condition
tableNameYesName of the table

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It reveals nothing about irreversibility, permissions required, whether an empty/missing condition deletes everything, transaction behavior, or how many rows were affected.

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 zero filler; nothing is padded. It is terse to the point of being thin, but no wording is wasted.

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?

This is a destructive mutation with no annotations and no output schema, yet the description supplies no warning about irreversibility, no return-value information, and no guardrail advice on constructing the WHERE condition. The safety-critical context an agent needs before invoking a delete is absent.

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 100% and both parameters (tableName, condition) are documented in the schema. The phrase 'based on a condition' restates the WHERE-clause parameter rather than adding syntax, escaping, or safety meaning.

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?

States a specific verb+resource scope: 'Delete rows from a table based on a condition'. This distinguishes it clearly from sibling 'update' (modifies rows) and 'insert' (adds rows), though it never names those alternatives explicitly.

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?

No when-to-use or when-not-to-use guidance, no mention of when a different sibling (e.g. update or a full-table drop) is the right choice, and no note that the condition should be verified first. The agent must infer everything about invocation context.

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