Skip to main content
Glama

describe_table

Inspect a MySQL table’s schema—columns, types, keys, defaults, nullability, and comments—before querying so you use accurate column names.

Instructions

Describe a table: column names, types, nullability, keys, defaults, and column comments. Always call this BEFORE query_table so you query with real column names. Returns a warning (not an error) if the table does not exist.

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

Input Schema

NameRequiredDescriptionDefault
tableYesTable name (from list_tables)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the burden and does well: it discloses the return payload fields and, importantly, that a nonexistent table yields a warning rather than an error, so the agent knows not to treat that outcome as a failure. It does not mention access requirements (permissions or visibility restrictions) or any cost/latency characteristics, which keeps it from a 5.

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 with no filler: the first defines the output, the second gives the mandatory sequencing rule. The most actionable content (what you get and when to call it) is front-loaded, and the edge-case note closes it out without padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple single-parameter read tool with no output schema and no annotations, the description covers everything needed: the full set of returned fields, the required call ordering relative to query_table, and the non-error behavior for missing tables. Nothing an agent needs in order to call it correctly is absent.

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% for the single required parameter, and the schema already states the table name comes from list_tables, so the description adds no syntax or format detail beyond it. Baseline 3 applies when the schema does all the parameter work.

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?

The description names a specific verb and resource ('Describe a table') and enumerates exactly what is returned: column names, types, nullability, keys, defaults, and column comments. That scope distinguishes it cleanly from query_table (which runs queries) and list_tables (which enumerates tables), so an agent can select it without opening the schema.

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

Usage Guidelines4/5

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

It gives an explicit workflow rule — 'Always call this BEFORE query_table so you query with real column names' — which both states the usage condition and names the sibling it sequences with. It does not state when to skip it (e.g., a table already described, or skipping straight to DDL inspection), so it falls short of full when/when-not coverage.

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