Skip to main content
Glama
DataPilot MCP

DataPilot MCP

Describe table

describe_table
Read-only

Inspect a table’s full schema—columns, types, nullability, defaults, primary and foreign keys, indexes, and unique constraints—before querying an unfamiliar table.

Instructions

Full detail for one table: every column with its type, nullability and default; the primary key; declared foreign keys; indexes; and unique constraints. Use before querying an unfamiliar table. Use get_table_sample for row values or describe_relationships for the database-wide join map.

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
aliasNoAlias from list_connections. Omit only when exactly one database is open.
tableYesTable or view name from list_tables, e.g. public.orders.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.0
    • addedInput schema / properties / alias / description
      Added value: +"Alias from list_connections. Omit only when exactly one database is open."
    • addedInput schema / properties / table / description
      Added value: +"Table or view name from list_tables, e.g. public.orders."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish this is a read-only, non-destructive, closed-world operation, so the description is not carrying the safety burden. It does add useful scope context by making clear the output is structural metadata only — no row data — which implicitly separates it from sampling tools, though it says nothing about error behavior for a nonexistent table or alias.

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?

Three sentences, zero padding, and the content enumeration is front-loaded before the usage routing. Every clause either states what comes back or which sibling to prefer.

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 two-parameter introspection tool with full schema coverage, annotations, and an output schema, nothing an agent needs in order to call it correctly is missing. The description covers scope, contents, and sibling routing without duplicating the return-value documentation already supplied structurally.

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 schema already explains the alias ("Omit only when exactly one database is open") and the table naming convention (e.g. public.orders). The description adds no further parameter meaning, which is the expected baseline when the schema does the 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?

Names a specific verb and resource ("Full detail for one table") and then enumerates the exact payload: columns with type/nullability/default, primary key, foreign keys, indexes, unique constraints. That specificity makes it immediately distinguishable from profile_table or get_table_sample.

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

Usage Guidelines5/5

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

Gives an explicit trigger ("Use before querying an unfamiliar table") and routes two named siblings to their own cases: get_table_sample for row values, describe_relationships for the database-wide join map. When-to-use, when-to-use-something-else, and which alternative are all present.

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