Skip to main content
Glama
tokenlite-mysql-mcp

tokenlite-mysql-mcp

by andezdev

mydatabase_ping

Read-only

Verifies that the MySQL database connection is alive and returns JSON with server status, version, and connection pool stats (active, idle, queued) for health checks.

Instructions

Health check: verifies the database connection is alive. Returns JSON with status, MySQL server version, and connection pool stats (active, idle, queued).

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
poolYes
errorNoError message if status is 'error'
statusYesWhether the database connection is healthy
server_versionNoMySQL server version

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.1.2

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered structurally. The description adds that this is a non-destructive liveness probe returning connection pool stats, which gives some operational context, but it doesn't say what happens on failure (error vs. status field) or whether it costs a round trip to the server.

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?

Two tight sentences with the core purpose front-loaded and no filler. The second sentence partly restates what the existing output schema already declares, which is mild redundancy rather than harm.

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 health check with declared annotations and an output schema, this is nearly complete – purpose, return shape, and safety profile are all covered. The only missing piece an agent might want is failure behavior, which the output schema may or may not resolve.

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 no parameter meaning to convey; the baseline for a 0-param tool applies and nothing in the description confuses the (empty) input contract.

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 purpose: 'Health check: verifies the database connection is alive,' which is a concrete verb+resource (connection liveness). It is clearly distinguishable from the query/schema siblings by function, but the description never names or contrasts an alternative, so differentiation is inferred rather than stated.

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 phrase 'health check' – an agent can reasonably infer this is a pre-flight connectivity probe, but there is no explicit guidance on when to call it (e.g., before running mydatabase_execute_safe_query) or when not to bother.

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