Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

check_table

Read-onlyIdempotent

Runs configurable error checks on a MySQL table, optionally within a specific database, to detect corruption before it impacts queries or data integrity.

Instructions

Checks a table for errors.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "table_name": "<table_name>"
    },
    "name": "check_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseNoOptional: specific database name
check_typeNoType of check
table_nameYesName of the table to check

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

C2.5/5.0
Behavior2/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 covered. The description adds nothing beyond that: it does not say what a check actually does (e.g., scans pages, validates indexes), whether it is expensive or slow for large tables, or how the check_type levels differ in cost.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with no wasted words, but it is under-specified rather than concise — the brevity leaves the reader with no more actionable information than the tool name already conveys.

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?

For a tool with an enum of five check levels and no output schema, the description should explain what the levels trade off (speed vs. depth) and roughly what the result reports. Neither is present, leaving the agent unable to choose a check_type or interpret the outcome.

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 coverage is 100%, so all three parameters including the check_type enum are documented in the schema itself. The description adds no meaning about the check_type levels (QUICK through EXTENDED) or the database/table_name relationship, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Checks a table for errors" gives a verb and resource, but "errors" is undefined — it could mean corruption check, constraint violations, or data integrity. Against siblings like analyze_table, get_table_status, and get_table_size, there is no statement of what distinguishes this check from those.

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, no prerequisites, and no mention of alternatives such as analyze_table or get_table_status. The agent must infer from the name alone when a check is appropriate versus a status or analysis call.

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