Skip to main content
Glama
MySQL Automation MCP Server

MySQL Automation MCP Server

Execute Mutation

execute_mutation

Validates MySQL mutation safety, runs statements in a transaction, and returns affected row counts; blocks unconstrained UPDATE/DELETE and requires confirmation for destructive DDL.

Instructions

Validate mutation safety, execute inside a transactional context, and return affected row counts.

  • Blocks unconstrained UPDATE / DELETE unless allow_unfiltered=True.

  • Requires confirmed=True for destructive DDL (DROP, TRUNCATE, ALTER).

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": {
      "sql": "<sql>"
    },
    "name": "execute_mutation"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYes
confirmedNo
allow_unfilteredNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/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 does disclose meaningful behavior: safety validation, transactional wrapping, and returned row counts. It omits what happens on failure (rollback semantics), whether changes are reversible, and any permission prerequisites for DDL — gaps that matter for a destructive tool.

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 front-loaded summary sentence followed by two bullets that each encode a distinct guard condition. No filler, no restatement of the title, and the conditional rules are the part an agent most needs surfaced.

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

Completeness4/5

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

An output schema exists, so return values need not be explained, and the safety-gating behavior is covered. What remains thin for a destructive, transaction-wrapped tool is error and rollback behavior plus permission requirements.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate, and it does for the two non-obvious flags: allow_unfiltered governs the unconstrained-write guard and confirmed gates destructive DDL, both with implied defaults of false. The required sql parameter is left undefined, which is the only notable omission.

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 first sentence gives a specific three-part verb chain (validate safety, execute transactionally, return affected row counts) applied to a clearly scoped resource: mutations, not reads. The name and description together distinguish it from execute_query, though the sibling is never named explicitly.

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

Usage Guidelines4/5

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

It states concrete conditions: unconstrained UPDATE/DELETE are blocked unless allow_unfiltered=True, and destructive DDL needs confirmed=True. That tells an agent when the call will be rejected and how to unblock it. It does not, however, say when to reach for execute_query instead of this tool.

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