Skip to main content
Glama
MCP MySQL/MariaDB Database Server

MCP MySQL/MariaDB Database Server

test_connection

Verify connectivity to a MySQL or MariaDB database, optionally by connection name, to confirm credentials and server access before running queries.

Instructions

Test the database connection

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
connectionNoDatabase connection name (optional, uses default if not specified)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It does not say what 'test' actually verifies (connectivity, credentials, latency), whether it fails by raising an error or returning a boolean, or whether it has side effects; the only hint comes from the schema's note about the default connection.

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 short sentence with zero filler and the action front-loaded. It is efficient but borders on under-specification for a tool whose result semantics matter to the caller.

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?

With no annotations and no output schema, the description is the only source for behavioral and return-value information, and it supplies none. For a diagnostic tool, an agent needs to know what a pass/fail looks like and whether the call is safe to repeat.

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 single parameter is 100% described in the schema, including its optionality and default behavior, so the structured field already does the work. The description adds nothing about the parameter, which is acceptable at this coverage level but not additive.

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?

The description states a specific verb ('Test') and resource ('the database connection'), so the action is unambiguous. It does not distinguish this tool from the sibling 'test_all_connections', leaving the agent to infer that this one targets a single connection.

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?

No when-to-use guidance is given and no alternative is named, even though the sibling list contains 'test_all_connections' and 'get_connection_info' as plausible choices for related intents. The agent must guess which testing or inspection tool fits.

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