Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

get_fulltext_stats

Read-onlyIdempotent

Retrieve statistics for FULLTEXT indexes on a MySQL table, including document count, size, and key length, to analyze index performance and storage.

Instructions

Retrieves statistics for FULLTEXT indexes on a table including document count, size, and key length. Use this to analyze index performance and size.

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

Input Schema

NameRequiredDescriptionDefault
databaseNoOptional: specific database name
table_nameYesName of the table

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description is free to add value — and it does by disclosing the returned metrics in the absence of an output schema. It stops short of stating whether a missing table or non-fulltext table yields an error or empty stats.

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?

Two sentences, front-loaded with the resource and result fields, with no filler. The second sentence lightly restates 'size' from the first, a minor redundancy.

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?

For a simple read-only stats tool, the definition covers what it acts on and what it returns, with annotations supplying the safety and idempotency contract. Edge-case behavior (missing table, no fulltext index) is the only material omission.

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%, so both parameters are already documented in structured form. The description's phrase 'on a table' reinforces the scope of table_name but adds nothing about the optional database parameter or cross-database resolution, 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?

States a specific verb and resource ('Retrieves statistics for FULLTEXT indexes on a table') and enumerates the returned content (document count, size, key length), so an agent knows exactly what it gets. It does not explicitly differentiate itself from the nearby siblings get_fulltext_info or get_index_info, leaving that distinction to inference.

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

Usage Guidelines3/5

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

The clause 'Use this to analyze index performance and size' gives a positive trigger but no exclusions, prerequisites, or named alternative (e.g., when to prefer get_index_info for non-fulltext indexes). Usage is implied rather than routed.

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