Skip to main content
Glama
tokenlite-mysql-mcp

tokenlite-mysql-mcp

by andezdev

mydatabase_refresh_schema

Read-onlyIdempotent

Rebuilds the internal Schema Graph from a live MySQL database and notifies subscribed MCP resources, fixing missing table or column errors after schema changes.

Instructions

Rebuilds the internal Schema Graph from the live database and notifies subscribed MCP resources. Use when search_schema or execute_safe_query fail with missing table/column errors after a schema change.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mydatabase_refresh_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.1.2

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already supply readOnlyHint and idempotentHint, but the description adds real behavioral context: it reads from the live database, replaces an internal derived structure, and pushes notifications to subscribed resources. Framing the rebuild as "internal" is what keeps this consistent with readOnlyHint, since no external/user-visible state is changed. It stops short of saying whether the rebuild is expensive, blocking, or fails partway, which would have completed the picture.

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?

Two sentences, no filler. What it does comes first, when to use it second, which is the correct front-loading for a recovery-style tool.

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 zero-parameter tool with no output schema and safety already covered by annotations, this covers the essentials: action, scope, side effect, and trigger. The only omission is failure/return behavior, which is minor given there is no output schema to describe.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; the baseline applies. No misleading parameter hints are given either.

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?

States a specific verb ("Rebuilds") and a specific internal resource ("Schema Graph") plus the source of truth ("live database") and the side effect ("notifies subscribed MCP resources"). This is clearly distinguishable from the sibling read tools search_schema and execute_safe_query, which are named in the next sentence as the normal path.

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

Usage Guidelines5/5

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

Gives an explicit trigger: use when search_schema or execute_safe_query fail with missing table/column errors following a schema change. It names the alternative tools and the precise failure signature that selects this one, so the agent does not have to infer when to escalate to a rebuild.

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