Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

get_table_status

Read-onlyIdempotent

Retrieves detailed status and statistics for a specific MySQL table or all tables, enabling inspection of table health and performance.

Instructions

Gets detailed status and statistics for one or all tables.

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

Input Schema

NameRequiredDescriptionDefault
databaseNoOptional: specific database name
table_nameNoOptional: specific table name (omit for all tables)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and closed-world scope, so the safety profile is fully covered by structured data. The description adds nothing about cost, freshness, caching, or what "statistics" includes on a live table. With annotations carrying the behavioral burden, this is adequate but thin.

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 front-loaded sentence with no filler or redundancy. It is lean, though its brevity borders on under-specification for a tool whose output is undefined.

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?

With no output schema, the description is the only place an agent could learn what "status and statistics" actually contains (engine, row counts, size, collation, update time, etc.), and it does not say. Annotations cover safety and the schema covers inputs, but the return surface is unexplained for a tool with ambiguous scope.

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?

Schema description coverage is 100%, and both parameters are documented inline, including that omitting table_name returns all tables. The description repeats the "one or all tables" idea without adding format, wildcard, or naming-convention detail beyond the schema. Baseline 3 applies.

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 ("Gets") and resource ("detailed status and statistics") with scope ("one or all tables"), so an agent can tell it returns metadata rather than data. It does not differentiate from nearby siblings such as get_table_size, analyze_table, or get_column_statistics, and "status" remains loosely defined.

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 only conditional in the description is "one or all tables," which merely restates the optional table_name semantics already in the schema. There is no advice on when to prefer this over get_table_size, analyze_table, or get_column_statistics, leaving the agent to guess among many overlapping table-level tools.

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