Skip to main content
Glama
MySQL Automation MCP Server

MySQL Automation MCP Server

Test Connection

test_connection

Verifies connectivity to the active MySQL instance and returns ping status, latency, server version, database name, and connection pool statistics.

Instructions

Test connection to active MySQL instance and return ping status, latency, server version, database name, and connection pool statistics.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden. 'Test' plus 'return' strongly signals a side-effect-free read, which is useful, but the description never states what happens when the instance is unreachable (error vs. status payload), whether it can be called while disconnected, or whether it incurs meaningful load.

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?

One sentence, front-loaded with the action and followed by the enumerated outputs, with no filler or redundancy. Every clause earns its place by naming a returned datum.

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?

An output schema exists, so the enumerated return values are arguably redundant, but the description still fixes the shape of a simple diagnostic call completely with respect to inputs. The one real gap for a connection-health tool is failure behavior when the instance is down, which neither annotations nor the text address.

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 tool takes zero parameters, so there is nothing for the description to disambiguate; the baseline for a 0-param call applies. The schema is closed (additionalProperties: false), so no hidden arguments exist to document.

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 specific verb ('Test connection') against a named resource ('active MySQL instance') and enumerates exactly what the call yields: ping status, latency, server version, database name, and pool statistics. That is enough for an agent to separate it from configure_connection or execute_query without opening any schema.

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?

Usage is only implied by the word 'Test' — an agent can infer this is a health/diagnostic probe rather than a data operation. There is no explicit statement of when to prefer it (e.g., before a batch of queries) and no exclusion telling the agent not to use it once work is underway.

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