Skip to main content
Glama
mysql-mcp-ddz

mysql-mcp-ddz

by fanzhenddz

connect_db

Establishes a connection to a MySQL database with host, user, password, and database credentials, enabling AI clients to run queries and inspect table schemas.

Instructions

Connect to MySQL database

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": {
      "host": "<host>",
      "user": "<user>",
      "password": "<password>",
      "database": "<database>"
    },
    "name": "connect_db"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYesDatabase host
userYesDatabase user
databaseYesDatabase name
passwordYesDatabase password

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 burden of behavioral disclosure. It states the tool connects to a database, implying it might establish a session or handle authentication, but it doesn't describe what happens on success or failure, whether connections are persistent, timeouts, or error handling. For a tool with 4 required parameters and no annotations, this leaves significant behavioral gaps.

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?

The description is a single, efficient sentence with zero waste: 'Connect to MySQL database'. It is appropriately sized and front-loaded, clearly stating the core action without unnecessary details. Every word earns its place, making it highly concise and well-structured.

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?

Given the complexity of a database connection tool with 4 required parameters, no annotations, and no output schema, the description is incomplete. It doesn't explain what the tool returns (e.g., a connection handle, success status), error conditions, or how it integrates with sibling tools. For a tool that likely enables other operations, more context is needed to guide the agent effectively.

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 input schema has 100% description coverage, with clear documentation for all 4 parameters (host, user, password, database). The description adds no additional meaning beyond what the schema provides, such as format examples or constraints. Given the high schema coverage, the baseline score of 3 is appropriate as the schema does the heavy lifting.

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?

The description 'Connect to MySQL database' clearly states the verb ('Connect') and resource ('MySQL database'), making the purpose understandable. However, it doesn't distinguish this tool from potential sibling tools like 'describe_table' or 'execute', which might also involve database operations. The purpose is clear but lacks sibling differentiation.

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 provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., that this must be called before other database tools), exclusions, or context for usage relative to siblings like 'query' or 'list_tables'. Without any usage instructions, the agent must infer when this tool is appropriate.

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

Deploy Server

Other Tools