Skip to main content
Glama

Describe a table

describe_table

Returns a table's columns, types, foreign keys, and three sample rows so you can inspect schema and real data before writing SQL. Use it to catch hidden formats like cents or ISO dates.

Instructions

A table's columns, types, foreign keys and three real rows. Read this before writing SQL against a table you have not inspected: the sample rows are what reveal that an INTEGER column holds cents and that a TEXT column holds ISO dates.

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
tableYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the disclosure burden; it does state the exact return contents, which is useful behavioral context. However, it never says the operation is read-only/side-effect-free, nor anything about cost, permissions, or behavior on a nonexistent table — gaps that matter for a no-annotation tool.

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 tight sentences, front-loaded with the return contents and immediately followed by the reason to call it. Every clause earns its place, including the concrete cents/ISO-date examples that justify the sample rows.

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 one-parameter introspection tool with an output schema present, the description covers purpose, timing, and the value of the sample rows; the output schema handles return structure. Only the input naming convention is left unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the sole parameter is only referenced obliquely ("against a table you have not inspected"). It does not clarify whether the name must be schema-qualified, whether views work, or case sensitivity — the exact ambiguity that bites when calling an introspection tool.

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 the concrete payload — columns, types, foreign keys, and three real rows — which is a specific resource-plus-content statement an agent can act on. It does not explicitly contrast itself with list_tables or run_sql, so the differentiation is inferred from content rather than stated.

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?

"Read this before writing SQL against a table you have not inspected" gives a clear triggering condition and timing relative to the write step. It stops short of exclusions, e.g. when to skip it in favor of list_tables or an already-known schema.

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

Deploy Server

Other Tools