Skip to main content
Glama
MySQL Automation MCP Server

MySQL Automation MCP Server

Get Schema

get_schema

Retrieve cached or refreshed MySQL database schema in Markdown or structured JSON, and force fresh introspection when needed.

Instructions

Return cached or refreshed database schema in Markdown or structured JSON.

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

Input Schema

NameRequiredDescriptionDefault
formatNoFormat style, either 'markdown' (default) or 'json'.markdown
refreshNoIf True, forces fresh introspection of information_schema.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one important behavior: results are served from a cache unless a refresh is requested. It says nothing about the cost or latency of a forced introspection, permission requirements, or how large the schema output may be.

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 wasted phrasing. It is arguably too terse for a tool with this much behavioral surface, but nothing in it is redundant.

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?

The output schema covers return values and the input schema is fully documented, so the essentials are present. Still, for a no-annotation tool the description omits schema scope and refresh cost, which an agent needs to call it correctly in context.

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%, so both parameters are already documented in the schema; the description only echoes them ('Markdown or structured JSON', 'cached or refreshed'). The baseline 3 applies because the description adds no syntax or trade-off detail beyond the structured fields.

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 names a specific verb ('Return') and resource ('database schema') plus the two output formats, so the core action is unambiguous. It does not, however, scope the schema (whole connection? single database? all objects) nor differentiate itself from siblings like describe_table or list_tables, leaving a real ambiguity an agent must resolve elsewhere.

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 guidance, no stated prerequisites, and no mention of when the related table/database listing tools would be a better choice. The only routing hint is implicit in the 'cached or refreshed' phrasing.

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