Skip to main content
Glama
MCP-MySQL-Ops

MCP-MySQL-Ops

by call518

get_table_io_stats

Retrieves table I/O statistics from Performance Schema to analyze access patterns, identify heavily used tables, and show read/write counts and timing ordered by total I/O time.

Instructions

[Tool Purpose]: Get table I/O statistics from Performance Schema

[Exact Functionality]:

  • Show I/O statistics for tables including reads, writes, and timing

  • Display fetch, insert, update, delete operations

  • Order by total I/O time

  • Show both request counts and timing information

[Required Use Cases]:

  • When user requests "table I/O", "table performance", "I/O statistics"

  • When analyzing table access patterns

  • When identifying heavily used 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_io_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of tables to return (default: 20)
database_nameNoDatabase name to connect to (uses default if omitted)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose some non-obvious traits: the data source is Performance Schema and results are ordered by total I/O time. However, it never states that the operation is read-only and side-effect free, nor that it depends on the performance_schema being enabled, nor any cost or rate considerations. That leaves a meaningful gap for a tool with zero annotation coverage.

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?

The bracketed section headers make the definition easy to scan and the purpose is front-loaded ahead of the use cases. There is some redundancy, e.g. "timing" is mentioned in the first bullet and repeated as "request counts and timing information," but it is minor and the whole thing stays short.

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?

The tool is a simple two-parameter read whose return values are covered by an output schema, and the description supplies the source system, the metrics, and the default ordering along with usage triggers. The main missing piece is an explicit read-only/safety statement and the performance_schema dependency, which keeps it from a 5.

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%, with both limit (max tables, default 20) and database_name (default connection if omitted) fully documented in the schema. The description adds no interpretation of either parameter, such as how the limit interacts with the I/O-time ordering. Baseline 3 is appropriate when the schema does all the work.

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 and resource ("Get table I/O statistics from Performance Schema") and enumerates the metrics returned: reads, writes, timing, and fetch/insert/update/delete operations. This distinguishes it well from siblings like get_index_usage_stats and get_table_size_info, since it is clearly about per-table I/O counters. It does not explicitly name a sibling it is not, which keeps it just below a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The "Required Use Cases" section gives concrete trigger phrases ("table I/O", "table performance", "I/O statistics") plus analytical contexts such as identifying heavily used tables. That is clear when-to-use guidance. It stops short of a 5 because there are no exclusions or explicit routing to alternatives such as get_index_usage_stats for index-level analysis.

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