Skip to main content
Glama
MCP MySQL Server

MCP MySQL Server

describe_table

Inspect a MySQL table's schema to view its columns, data types, keys, and constraints before querying or changing the table.

Instructions

Get the structure/schema of a table

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": {
      "tableName": "<tableName>"
    },
    "name": "describe_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableNameYesName of the table to describe

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden, yet it never states that the operation is read-only, what it returns (column names, types, constraints), or how it behaves for a nonexistent or unauthorized table. The only behavioral hint is the word "Get," which weakly implies a non-mutating call.

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?

One front-loaded sentence with zero filler; nothing is redundant or padded. The brevity is efficient, though it edges toward under-specification rather than true economy.

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?

This is a simple single-parameter tool with full schema coverage, so the bar is low, but the absence of any output schema means the description should have explained what "structure" contains. It is minimally sufficient to invoke correctly but leaves the return value and safety profile to inference.

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?

The schema is fully described (100% coverage) with a single required tableName string, so the baseline is 3. The description adds no extra meaning such as case sensitivity, qualification format, or how ambiguous names are resolved, so it neither helps nor harms beyond the schema.

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?

"Get the structure/schema of a table" names a specific verb (get) and resource (table structure/schema), which is clearly distinguishable from sibling operations like list_tables, query, or insert. It stops short of explicitly contrasting itself with those siblings, so it reads as clear but not fully differentiated.

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 statement of when to call this versus list_tables or query, no prerequisite (e.g., must the table exist / must you be connected first), and no exclusions. The agent must infer that this is a pre-query introspection step purely from the verb.

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