Skip to main content
Glama
isdaniel

MySQL-Performance-Tuner-Mcp

analyze_wait_events

Read-onlyIdempotent

Identify MySQL performance bottlenecks by analyzing wait events for locks, I/O operations, buffer pool usage, and log activities to detect resource contention and saturation issues.

Instructions

Analyze MySQL wait events to identify bottlenecks.

Wait events indicate what processes are waiting for:

  • Lock waits (row locks, table locks)

  • I/O waits (disk operations)

  • Buffer pool waits

  • Log waits

  • Mutex and semaphore waits

This helps identify:

  • I/O bottlenecks

  • Lock contention patterns

  • Resource saturation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
event_categoryNoCategory of events to analyzeall
top_nNoNumber of top events to return
Behavior4/5

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

Annotations already provide key behavioral hints (readOnlyHint: true, destructiveHint: false, idempotentHint: true), so the bar is lower. The description adds valuable context by explaining what wait events are and what they help identify (e.g., lock contention patterns, resource saturation), which goes beyond the annotations and aids in understanding the tool's scope and output implications.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and front-loaded with the core purpose, followed by bullet points that efficiently detail wait event types and analysis benefits. Every sentence earns its place by adding clarity without redundancy, making it easy to scan and understand.

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?

Given the tool's complexity (analyzing wait events for bottlenecks), annotations cover safety (read-only, non-destructive), and schema fully documents parameters, the description provides good context on what the tool analyzes and why. However, there is no output schema, and the description does not specify return format or data structure, leaving a minor gap in completeness.

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 clear descriptions for both parameters (event_category with enum values, top_n with default). The description does not add specific parameter semantics beyond the schema, but it lists event categories (e.g., lock waits, I/O waits) that align with the enum, providing some contextual reinforcement. Baseline 3 is appropriate given high schema coverage.

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?

The description clearly states the tool's purpose: 'Analyze MySQL wait events to identify bottlenecks.' It specifies the verb ('analyze'), resource ('MySQL wait events'), and goal ('identify bottlenecks'), which distinguishes it from sibling tools that focus on other MySQL aspects like queries, indexes, or replication.

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 description implies usage by listing what wait events indicate and what they help identify (e.g., I/O bottlenecks, lock contention), but it does not explicitly state when to use this tool versus alternatives like 'analyze_query' or 'get_slow_queries'. No exclusions or direct comparisons to sibling tools are provided.

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/isdaniel/mysqltuner_mcp'

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