Skip to main content
Glama
Ustinianslife

MySQL MCP Server Pro

execute_sql

Execute SQL queries and multiple semicolon-separated statements against MySQL databases for data retrieval, modification, and analysis operations.

Instructions

在MySQL数据库上执行SQL (支持多条SQL语句,以分号分隔)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes要执行的SQL语句
Behavior2/5

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

No annotations provided, so description carries full burden. It discloses multi-statement support (semicolon-separated), but critically omits: whether the tool returns result sets, error handling behavior, transaction semantics, timeout limits, or safety warnings appropriate for arbitrary SQL execution.

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?

Extremely concise single sentence with main action front-loaded. The parenthetical addition '(支持多条SQL语句,以分号分隔)' efficiently conveys multi-statement capability without verbosity. No wasted words.

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?

Inadequate for a high-complexity database execution tool with no output schema and no annotations. Missing critical context: return value format (result sets vs execution status), error handling, safety considerations for destructive operations, and whether it distinguishes between DDL/DML/DQL statements.

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% with the 'query' parameter already described as '要执行的SQL语句'. The description adds context that multiple statements are supported (semicolon-separated), which applies to this parameter, but does not elaborate on SQL syntax requirements, injection risks, or result set limits.

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?

Clearly states the tool executes SQL on MySQL databases with specific verb '执行' (execute) and resource 'SQL'. However, it does not explicitly differentiate from read-only siblings like 'get_table_desc' or 'get_table_index' that could be used for inspection instead.

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?

Provides no explicit guidance on when to use this tool versus the specialized read-only alternatives (get_table_desc, get_table_index, etc.). While it notes multi-statement support in parentheses, it lacks warnings about write operations or prerequisites like permissions.

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/Ustinianslife/mysql_mcp'

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