Skip to main content
Glama
dbbroker-mcp
by natogalvez

describe_table

Returns column metadata for a database table or view—type, length, nullability, default, and primary-key membership—so you can inspect schema before querying.

Instructions

Columns of a table/view: type, length, nullability, default, and whether it is part of the PK.

Args: table: 'schema.table' or 'table' (dbo schema by default).

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
connectionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/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 burden: it does disclose the exact field set returned, implying a read-only introspection call, and an output schema covers the return shape. However, it says nothing about error behavior for nonexistent tables, permission requirements, or behavior on views versus tables beyond the parenthetical mention.

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?

The returned-field list is front-loaded and the argument note is short and specific. The 'Args:' block formatting is slightly awkward in prose but costs almost no tokens and no meaning.

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

Completeness3/5

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

For a simple introspection tool with an output schema, the return-value side is well covered. The missing pieces are the undocumented `connection` parameter and any note on which database context the call applies to, which matter given the absence of annotations.

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 coverage is 0%, so the description must compensate, and it does partially: it explains the `table` argument accepts 'schema.table' or bare 'table' with dbo as the default schema, which the schema does not convey. The second parameter, `connection`, is never mentioned, leaving a real gap for a 2-parameter 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 resource (a table/view) and enumerates exactly what metadata is returned — type, length, nullability, default, PK membership — which lets an agent distinguish it from list_tables or query. It is a noun phrase rather than a verb, relying on the tool name to supply the action, so it stops short of a fully self-contained purpose statement.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no mention of any sibling tool. The agent must infer that this is for schema inspection prior to writing queries; nothing states that it does not return rows or that `query` should be used for data retrieval.

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