Skip to main content
Glama

Describe a table

describe_table
Read-onlyIdempotent

Retrieve a table's schema, keys, masked columns, row-level filters, and query constraints before writing SQL, so queries pass SQLGuardLLM validation and access controls.

Instructions

Describe one table you may query: column names and types, primary key, foreign keys to other tables you may query, masked columns, whether rows are filtered for the current user, required filters, aggregate-only and whether SELECT * works.

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, as list_tables shows it

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0-alpha.8

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description nonetheless adds substantive behavioral disclosure beyond them: masked columns, per-user row filtering, required filters, aggregate-only tables, and whether SELECT * is permitted — the exact constraints an agent needs before writing a query. It stops short of noting any failure mode for an inaccessible or nonexistent table name.

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?

It is a single front-loaded sentence with no filler — the verb and scope come first, followed by a dense enumeration of returned facts. It is slightly hard to scan as a comma-run list, but no clause is redundant.

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 one-parameter, read-only introspection tool with an output schema and full annotation coverage, the description supplies everything needed to invoke it correctly: what the argument is, what comes back, and which access restrictions to expect. Nothing material is missing.

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% and the single parameter is documented as 'Table name, as list_tables shows it', so the schema carries the semantic load. The description only adds the qualifier 'a table you may query', hinting that inaccessible names are invalid, but gives no format or case-sensitivity detail. Baseline 3 applies.

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?

Opens with a specific verb and resource ('Describe one table') and then enumerates exactly what the result contains: column names and types, primary key, foreign keys, masked columns, row filtering, required filters, aggregate-only status, and whether SELECT * works. That enumeration distinguishes it from list_tables (many tables, names only) and query (executes SQL) without ambiguity.

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

Usage Guidelines3/5

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

The phrase 'one table you may query' implies this is a pre-query introspection step limited to permitted tables, which is useful context. However, it never states when to call this versus list_tables or query, nor any explicit prerequisite or exclusion, so usage is only implied.

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