Skip to main content
Glama
Esaban17

mcp-mysql-database

by Esaban17

execute_sql

Destructive

Run a single SQL statement to modify database data or schema. DROP and TRUNCATE require confirmation; unavailable on read-only connections.

Instructions

Ejecuta una sentencia SQL única que modifica datos o esquema (ALTER, UPDATE masivo, CREATE INDEX, etc.). DROP y TRUNCATE requieren confirm=true. No disponible en conexiones readOnly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYes
paramsNo
confirmNoRequerido para DROP / TRUNCATE
databaseNoBase de datos a usar (por defecto la actual de la conexión activa)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only supply destructiveHint=true; the description adds real value beyond that by disclosing the single-statement constraint, the confirm requirement for DROP/TRUNCATE, and the readOnly-connection limitation. It does not describe transaction semantics, whether multiple statements are rejected, or what is returned, but the safety-relevant context is well covered.

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?

Three short sentences with the core operation front-loaded, then the two safety conditions. No filler, every sentence carries a distinct constraint.

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?

For a mutation tool with no output schema and only destructiveHint in annotations, the description covers the essential risks (confirmation, readOnly exclusion, single statement). Missing transaction/return behavior details keep it from being fully complete, but an agent has enough to invoke it safely.

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 description coverage is 50%: confirm and database are documented in the schema, while sql and params are bare. The description reinforces the confirm semantics for DROP/TRUNCATE but says nothing about the params array binding or when to pass database, so it only partially compensates for the gap.

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 (Ejecuta) and resource (sentencia SQL única) and scopes it to statements that modify data or schema, with examples (ALTER, UPDATE, CREATE INDEX). It implicitly separates itself from read-oriented siblings like run_query/select_records, but never names an alternative, so differentiation is inferred rather than explicit.

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?

Gives concrete usage conditions: DROP/TRUNCATE require confirm=true, and the tool is unavailable on readOnly connections. It stops short of explicitly naming run_query/select_records as the alternative for non-mutating statements, so the routing guidance is clear but not complete.

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