Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

list_indexes

Read-onlyIdempotent

Lists all indexes for a specified MySQL table, optionally within a chosen database, to help inspect schema and understand table indexing.

Instructions

Lists all indexes for a specific table.

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

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

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered without the description. The description adds only the scope notion (all indexes, scoped to one table) and says nothing about output shape, ordering, or behavior when the table has no indexes or does not exist — acceptable but thin given the annotations carry the load.

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?

A single short sentence with zero filler and the core resource front-loaded. It is efficient, though the extreme brevity edges toward under-specification rather than deliberate economy.

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?

For a simple two-parameter read-only list tool with a fully documented schema and rich annotations, the description is minimally sufficient to call the tool correctly. It omits any hint of the returned index attributes or ordering, which would help an agent chain into follow-up tools like get_index_info.

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 table_name (required) and an optional database already documented in the schema. The description adds no meaning beyond that — it does not clarify how the optional database qualifier interacts with table_name or what happens when it is omitted, so the baseline 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 states a specific verb and resource: listing all indexes belonging to a given table. It is unambiguous on its own, but it does not distinguish itself from related siblings such as get_index_info (detail-oriented) or analyze_index, so an agent must infer the 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 Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no alternative is named. The phrase 'for a specific table' implies the precondition that a table must exist, but the agent is left to infer that this is the enumeration tool versus the detail/analysis siblings.

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