Skip to main content
Glama
Ustinianslife

MySQL MCP Server Pro

get_db_health_index_usage

Identify redundant and poorly performing MySQL indexes along with unused indexes from slow queries over 30 seconds to optimize database performance and storage.

Instructions

获取当前连接的mysql库的索引使用情况,包含冗余索引情况、性能较差的索引情况、未使用索引且查询时间大于30秒top5情况(Get the index usage of the currently connected mysql database, including redundant index situations, poorly performing index situations, and the top 5 unused index situations with query times greater than 30 seconds)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations provided, the description carries full burden and successfully discloses specific behavioral limits (returns 'top 5' unused indexes, focuses on queries >30 seconds). However, it omits safety-critical details like whether the operation is read-only, expensive to run on large databases, or if it acquires locks.

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?

Bilingual presentation is efficient for accessibility, with the core value proposition (database health diagnostics) presented immediately. The list of three specific check categories is appropriately detailed, though slightly verbose.

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?

Without an output schema, the description adequately compensates by enumerating the three specific data categories returned (redundant, poor performance, unused top 5). Could be improved by indicating the return format (table, JSON array, etc.).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Tool accepts zero parameters, meeting the baseline expectation. The description appropriately implies no filtering is needed by specifying 'currently connected mysql库,' indicating it operates on the active session context without additional inputs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the specific diagnostic purpose (getting MySQL index usage) and distinguishes from sibling get_table_index by emphasizing database-level health metrics (redundant, poorly performing, unused indexes) rather than table schema listing.

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?

Provides implied usage context (diagnostic/health check scenarios) by listing specific index problems it detects, but lacks explicit guidance on when to use versus alternatives like optimize_sql or get_db_health_running, and omits prerequisites like requiring an existing database connection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ustinianslife/mysql_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server