Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

get_optimization_hints

Read-onlyIdempotent

Retrieve suggested MySQL optimizer hints for a chosen SPEED, MEMORY, or STABILITY goal to support query tuning and resolve performance or resource issues.

Instructions

Get suggested MySQL optimizer hints for a specific optimization goal (SPEED, MEMORY, or STABILITY).

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": {
      "goal": "<goal>"
    },
    "name": "get_optimization_hints"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalYesOptimization goal: SPEED for faster queries, MEMORY for lower memory usage, STABILITY for consistent performance

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 covered. The description's use of 'suggested' usefully signals the output is advisory rather than applied, but it says nothing about whether hints are tailored to the live schema or are generic, and gives no sense of result shape.

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 front-loaded sentence with no filler, and the parenthetical keeps the goal values visible at a glance. Slightly redundant with the schema's enum description, which keeps it from a 5.

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?

With one fully documented parameter and complete annotations, the call mechanics are adequately covered. However, there is no output schema and the description does not characterize what the returned hints look like or whether they must be applied manually, leaving a real gap for a tool whose whole value is its return content.

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 enum's own description already explains SPEED, MEMORY, and STABILITY in detail. The description only restates the enum values, adding no meaning beyond the schema, 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 gives a specific verb and resource ('Get suggested MySQL optimizer hints') plus the parameterized dimension ('for a specific optimization goal'), so an agent knows exactly what it retrieves. It does not distinguish itself from analysis siblings such as analyze_query or analyze_index, which also touch query performance, so it falls short of a 5.

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 when-to-use or when-not-to-use guidance and no named alternative; the agent must infer that this tool is for requesting advisory hints rather than running analysis. The only contextual cue is the required goal argument, which implies intent but does not route the agent among siblings.

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