Skip to main content
Glama
327100395

mcp-mysql-apifox

by 327100395

execute_mysql_readonly

Execute read-only MySQL queries (SELECT, SHOW, DESCRIBE) using a DSN connection. Prevents write operations to ensure data safety.

Instructions

执行只读mysql语句(仅支持SELECT、SHOW、DESCRIBE等查询操作),使用前读取规则或用户指定的DSN链接

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dsnYesMySQL数据库连接字符串,DSN格式:mysql://user:password@host:port/database
sqlYes要执行的只读SQL语句(SELECT、SHOW、DESCRIBE等),如果不是读操作将终止运行
Behavior3/5

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

Without annotations, the description carries the full burden. It explicitly states that the tool is read-only and will terminate for non-read operations, which provides safety transparency. However, it lacks details on error handling, authentication, or other behavioral aspects.

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?

The description is concise, containing two clauses in one sentence. It is front-loaded with the core functionality. However, the phrase about reading rules is slightly vague and could be clearer.

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?

Given the simple structure (two required params, no output schema), the description covers the purpose and constraints but omits information about return values, potential errors, or result format. It is adequate but not fully complete.

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?

The schema already describes both parameters with 100% coverage. The description adds value by reinforcing the read-only constraint on the SQL parameter and the need for a valid DSN, providing additional meaning beyond the schema.

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 clearly states the tool executes read-only MySQL statements supporting SELECT, SHOW, DESCRIBE, etc. It distinguishes itself from the sibling 'execute_mysql_only' by emphasizing the read-only constraint.

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?

The description mentions reading rules before use but does not provide explicit guidance on when to use this tool versus alternatives, or when not to use it. No exclusion criteria or alternative tool references are given.

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/327100395/mcp-mysql-apifox'

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