Skip to main content
Glama
mysql-mcp

mysql-mcp

by douglasaxel

mysql_query

Execute SQL queries against a MySQL database and return the results, optionally using parameters for prepared statements.

Instructions

Execute a MySQL query and return results

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": {
      "query": "<query>"
    },
    "name": "mysql_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesThe SQL query to execute
parametersNoOptional parameters for prepared statements

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden and largely drops it. Nothing is said about whether writes/DDL are permitted (a critical distinction for a mutation-capable SQL tool), result-set limits, timeouts, permission requirements, or error behavior. 'return results' is the only behavioral statement and it conveys almost nothing.

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?

A single front-loaded sentence with zero filler and no wasted wording. Its brevity is efficient in structure, though the missing content is penalized under other dimensions rather than here.

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?

For a two-parameter tool with a fully-described schema and no output schema, the description need not explain return values. However, with no annotations and no mention of read vs. write capability or safety constraints, it is not complete enough for an agent to invoke a raw SQL executor confidently.

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 100%, with both 'query' and 'parameters' documented in the input schema, so the baseline of 3 applies. The description adds no meaning beyond the schema — it does not explain prepared-statement usage, placeholder syntax, or how 'parameters' pairs with 'query'.

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

Purpose3/5

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

'Execute a MySQL query and return results' names a verb (execute) and a resource (MySQL query), so the basic function is identifiable and implicitly distinguishes it from the list/describe siblings. But it essentially restates the tool name and never states the scope of what 'a MySQL query' covers (arbitrary SQL vs. read-only SELECT), which is the only differentiating fact that matters against the other mysql_* tools.

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 gives no when-to-use or when-not-to-use guidance at all. It does not say whether this is the escape hatch for arbitrary SQL versus the table-listing siblings, nor whether it is appropriate for writes/DDL. An agent must guess.

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