Skip to main content
Glama
database-mcp

database-mcp

describe_table

Retrieves full details for one database table—columns, types, nullability, defaults, primary keys, foreign keys, and indexes—when a schema overview is insufficient.

Instructions

Full detail for one table: columns (name, type, nullable, default, primary key), foreign keys, and indexes. Use when get_schema's overview isn't enough.

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

Input Schema

NameRequiredDescriptionDefault
tableYes
schemaNo
connectionYesNamed connection from list_connections (preferred) or a raw connection string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A3.9/5.0
Behavior3/5

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

No annotations exist, so the description carries the burden. It does well on output shape by enumerating columns, foreign keys and indexes, which substitutes for the missing output schema. It says nothing about failure behavior (unknown table, wrong connection), whether the schema parameter defaults to the connection's default schema, or cost/latency of introspecting a large table.

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, zero filler, and the return contents are front-loaded before the routing hint. Nothing redundant with the tool name or schema.

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?

With no output schema, the description usefully specifies the return shape, which is the main completeness risk for an introspection tool. The remaining gap is parameter-level: the `schema` parameter and table-name qualification are left unexplained despite low schema coverage.

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 description coverage is only 33%: only `connection` is documented in the schema. The description mentions 'one table' but adds no guidance on whether `table` must be qualified, whether it is case-sensitive, or what the `schema` parameter does when a table name is ambiguous across schemas. The description does not compensate for the undocumented parameters.

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 resource (one table) and enumerates exactly what detail is returned: columns with name, type, nullable, default and primary key, plus foreign keys and indexes. It also explicitly contrasts with the sibling get_schema, so an agent can distinguish the two without opening either 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 a clear routing rule: use this when get_schema's overview isn't enough. That is a genuine when-to-use condition tied to a named sibling. It stops short of covering other plausible paths (e.g., list_tables to discover the table name first, or run_query for ad-hoc introspection), so it is clear but not exhaustive.

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