Skip to main content
Glama
MySQL Automation MCP Server

MySQL Automation MCP Server

Configure Connection

configure_connection

Update MySQL connection credentials at runtime, reinitialize the connection pool, and optionally persist them to ~/.mysql-mcp/config.json for future sessions.

Instructions

Update connection credentials dynamically at runtime, reinitialize pool, and optionally persist credentials to ~/.mysql-mcp/config.json.

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": "configure_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNo
portNo
userNo
databaseNo
passwordNo
save_configNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

No annotations, so the description carries the full burden. It does disclose two real side effects — the pool is reinitialized and credentials may be written to disk — which is genuine value. But it omits that save_config defaults to true (so credentials are persisted by default, not just 'optionally'), says nothing about plaintext password storage risk, whether in-flight connections are dropped by the pool reinit, or what happens on partial/failed update.

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 tight sentence with the main action front-loaded and side effects following. No filler; slightly more length would be justified here to cover the parameter gaps.

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?

The output schema exists, so return values needn't be described. But for a six-parameter mutation with zero schema coverage, zero annotations, and file-writing behavior, the definition leaves the agent guessing on null-handling and the persistence default — the two things most likely to cause a wrong call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across six parameters, and the description names none of them. Critically, the anyOf-null defaults strongly suggest 'null means leave unchanged,' but the description never confirms this, nor does it map 'optionally persist' to the save_config flag or explain the host/port/user/database/password semantics.

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?

States a specific verb (Update) plus resource (connection credentials) and adds two concrete effects: pool reinitialization and optional persistence to ~/.mysql-mcp/config.json. An agent can separate it from test_connection (read-only check) or use_database (scope change), though it never names a sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'dynamically at runtime' implies this is for changing an already-established connection rather than initial setup, which is useful implied context. However, there is no explicit when-to-use, no guidance on how it relates to test_connection before/after, and no warning about when not to call it.

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