Skip to main content
Glama
MCP-MySQL-Ops

MCP-MySQL-Ops

by call518

get_table_size_info

Retrieve MySQL table sizes with data and index breakdowns, row counts, and average row size, ordered largest first to support storage analysis and database optimization planning.

Instructions

[Tool Purpose]: Get table size information and storage analysis

[Exact Functionality]:

  • Show table sizes with data and index breakdown

  • Display size ratios and storage efficiency

  • Order by total size (largest first)

  • Include row counts and average row sizes

[Required Use Cases]:

  • When user requests "table sizes", "largest tables", "storage analysis"

  • When planning database optimization

  • When monitoring storage usage

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_size_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of tables to return (default: 20)
database_nameNoDatabase name to analyze (uses current database if omitted, shows all if none)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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. It discloses ordering (largest first) and what the result contains, but it does not state that this is a read-only operation, whether it is expensive on large schemas, or whether special privileges are needed to see index sizes. Those are exactly the gaps an agent would want filled for an unannotated tool.

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?

The front-loaded purpose line is good, but the bracketed section headers ([Tool Purpose], [Exact Functionality], [Required Use Cases]) and the output-field bullets add structural overhead. Several bullets restate content that is already carried by the output schema, costing length without adding selection signal.

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?

Because an output schema exists, the definition is not obligated to enumerate return values, yet it spends most of its text doing so. What is missing for a zero-annotation, zero-required-parameter tool is the safety/behavior profile (read-only? cost? privileges?) and the boundary against database-level or index-level size siblings.

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 both parameters (limit, database_name) are already fully documented in the schema, including defaults and the "current database if omitted" behavior. The description adds no further parameter meaning such as ordering interaction with limit or validation constraints, so the baseline of 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?

"Get table size information and storage analysis" states a specific verb and resource, and the functionality bullets (data/index breakdown, size ratios, row counts) sharpen what "size information" means. It does not explicitly distinguish itself from nearby siblings like get_database_size_info or get_index_usage_stats, so the agent must infer the scope boundary from names alone.

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" block gives concrete triggers (user asks for "table sizes", "largest tables", "storage analysis"; optimization planning; storage monitoring), which is clear positive guidance. It stops short of stating when NOT to use this versus get_database_size_info/get_io_stats, so there are no alternatives or exclusions.

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