Skip to main content
Glama
huanglixinccc

MySQL MCP Server

mysql_execute

Execute INSERT, UPDATE, or DELETE statements with parameter binding and optional database selection. Blocks UPDATE/DELETE missing WHERE for safety.

Instructions

[riskLevel: medium] Execute an INSERT, UPDATE, or DELETE statement. UPDATE/DELETE without WHERE are rejected by default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesDML statement. Use ? as placeholders.
paramsNoValues for ? placeholders
databaseNoTarget database (optional)
Behavior3/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 discloses a medium risk level and the default rejection of UPDATE/DELETE without WHERE, which is valuable safety behavior. However, it does not explain return values, transaction semantics, or whether the 'by default' can be overridden.

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?

Two concise sentences with no redundant information. The risk level is front-loaded, and the key safety behavior is immediately stated.

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?

The description covers the core purpose and a key safety rule, but for a mutation tool it lacks information about return values, error handling, or transactional behavior. The schema covers parameters well, but the absence of output schema and annotations leaves some gaps.

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?

The schema already describes all three parameters (sql, params, database) with 100% coverage, so the description adds no additional parameter details. Per the rubric, baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb 'Execute' and explicitly names the DML statement types (INSERT, UPDATE, DELETE), clearly distinguishing it from sibling tools like mysql_query (likely for reads). It also adds a useful safety constraint about WHERE-clause rejection.

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?

The description implies usage for write operations by enumerating INSERT, UPDATE, DELETE, which contrasts with read-oriented sibling tools. It does not explicitly name alternative tools or state when not to use, but the operation types provide clear context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/huanglixinccc/mysql-mcp-nest'

If you have feedback or need assistance with the MCP directory API, please join our Discord server