Skip to main content
Glama
MCP-MySQL-Ops

MCP-MySQL-Ops

by call518

get_database_size_info

Retrieve MySQL database sizes, table counts, and storage breakdowns to compare capacity and monitor growth; analyze one database or all.

Instructions

[Tool Purpose]: Get database size information and storage distribution

[Exact Functionality]:

  • Show database sizes with table counts

  • Display total, data, and index size breakdown

  • Compare databases by storage usage

  • Include average table sizes

[Required Use Cases]:

  • When user requests "database sizes", "storage usage", "database capacity"

  • When planning database resources

  • When monitoring growth trends

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

Input Schema

NameRequiredDescriptionDefault
database_nameNoSpecific database name to analyze (analyzes all databases 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?

No annotations are supplied, so the description carries the full behavioral burden; it does disclose that results include table counts, size breakdowns, cross-database comparison, and averages. It says nothing about whether the scan is expensive on large instances, whether it requires privileges to read all schemas, or how many databases are returned at once. The "[Exact Functionality]" list partially duplicates what the existing output schema likely already describes.

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 bracketed section headers make it scannable and the purpose is front-loaded, but the purpose statement is then restated across the function and use-case lists, and some bullets ("Compare databases by storage usage") are output properties rather than distinct capabilities. Moderate redundancy without becoming unreadable.

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?

With one optional parameter, an existing output schema, and no annotations, the definition covers what the tool returns and when to call it well enough to invoke correctly. The only real gap is the absence of any guidance on scope tradeoffs versus table-level size tools.

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% and the single optional database_name parameter is fully documented in the schema, including the omit-to-analyze-all behavior. The description never mentions the parameter, so it adds no meaning beyond the schema; 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?

The description names a specific verb and resource ("Get database size information and storage distribution") and enumerates the concrete outputs: total/data/index size breakdown, table counts, average table sizes. It does not differentiate itself from the nearby get_table_size_info sibling, so an agent must infer the per-database vs per-table split on its own.

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?

Three explicit trigger phrases ("database sizes", "storage usage", "database capacity") plus two scenario bullets (capacity planning, growth monitoring) give clear when-to-use context. There are no exclusions or pointers to alternatives such as get_table_size_info for table-level detail, which keeps it out of the top band.

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