Skip to main content
Glama
MCP MySQL/MariaDB Database Server

MCP MySQL/MariaDB Database Server

describe_table

Retrieve the schema and structure of a specific MySQL or MariaDB table to inspect columns, types, and definitions for query building or debugging.

Instructions

Get the schema/structure of a specific 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": {
      "table_name": "<table_name>"
    },
    "name": "describe_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
connectionNoDatabase connection name (optional, uses default if not specified)
table_nameYesName 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, the description carries the full burden, yet it discloses almost nothing: it is presumably a read-only operation but never says so. It is silent on what schema details are returned (columns, types, constraints, indexes), behavior for a nonexistent table, or permissions required.

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 compact sentence with the resource and scope front-loaded and no filler. Brevity is appropriate, though the space saved is not redirected into any useful clarifying detail.

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?

For a simple two-parameter read tool with full schema coverage, the definition is minimally adequate. However, with no output schema present, the description could have stated what the returned structure contains, which is the main consumer-relevant gap.

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 both table_name and connection documented inline, including the default-connection fallback. The description adds no meaning beyond the schema, but the baseline of 3 applies since the schema does the work.

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?

States a specific verb ('Get') and resource ('schema/structure of a specific table'), which is unambiguous on its own. It does not explicitly distinguish itself from siblings like list_tables or execute_query, so it falls short of a 5, but the action is clear.

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?

No guidance on when to use this versus alternatives such as list_tables or querying metadata through execute_query. The use case (inspecting a table's columns before writing a query) is only weakly implied by the wording, and no prerequisites or exclusions are stated.

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