Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

cursor_execute_request

Destructive

Dispatches MySQL MCP tool calls for Cursor clients that cannot send arguments by reading a request file and routing queries or DDL to the requested tool.

Instructions

Cursor compatibility bridge for clients that can call MCP tools but cannot send arguments. Requires utility permission and an enabled destination tool. Reads .cursor/mysql-mcp-request.json (or MYSQL_MCP_CURSOR_REQUEST_FILE) and dispatches to the requested MySQL MCP tool. The request file supports {"tool":"execute_ddl","arguments":{"query":"DROP TABLE IF EXISTS t;"}} or direct SQL with {"query":"...","mode":"auto"}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cursor_execute_request"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

A4.3/5.0
Behavior4/5

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

Adds real context beyond the annotations: permission requirements, the dependency on an enabled destination tool, the file path with an env-var override, and a DDL example (DROP TABLE) that substantiates the destructiveHint=true flag. It does not describe failure behavior when the file is missing or malformed, or what gets returned, so it is strong but not complete.

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?

Three sentences, front-loaded with the purpose before prerequisites and file format. The embedded JSON examples are dense but earn their space since they define the only real input to the tool; the final sentence is slightly long and could be split.

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 zero-parameter, no-output-schema, destructive dispatcher, the definition covers the essentials: why it exists, where input comes from, what permissions are needed, and the input shape. The main omission is dispatch semantics — whether the destination tool's result is passed through, and what happens on a bad request file.

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?

Zero declared parameters, so the baseline is 4; the description earns that by documenting the real input surface — the request file — with two concrete shapes ({"tool":...,"arguments":{...}} and direct SQL with {"query":...,"mode":"auto"}). It does not enumerate which destination tools are dispatchable or what `mode` values exist beyond `auto`, leaving some semantics unstated.

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?

States a concrete mechanism: it acts as a 'Cursor compatibility bridge' that 'reads .cursor/mysql-mcp-request.json ... and dispatches to the requested MySQL MCP tool.' This is a specific verb-plus-resource and is immediately distinguishable from the analysis-oriented siblings (analyze_query, list_tables, etc.), which take arguments directly.

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 a clear selecting condition: for 'clients that can call MCP tools but cannot send arguments,' and states prerequisites (utility permission, an enabled destination tool). It stops short of an explicit exclusion ('if your client can send arguments, call the destination tool directly'), but the context implies it strongly.

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