Skip to main content
Glama
DB MCP Server

DB MCP Server

by HW-public

describe_table

Show a table's columns, data types, and constraints to inspect database schema and understand table structure.

Instructions

Describe a table: show columns, data types, and constraints.

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_name": "<table_name>"
    },
    "name": "describe_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
schemaNoSchema/owner name.
dataSourceNoName of the data source to use (see list_data_sources). Defaults to the single configured database, if only one is connected.
table_nameYesName of the table to describe.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. The word 'show' implies a read-only metadata operation, but it does not explicitly confirm that it is non-mutating, state whether any permissions are required, or describe failure behavior for missing tables or inaccessible data sources.

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?

The definition is a single front-loaded sentence with no wasted words. It communicates the action and the returned information immediately.

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 simple metadata introspection tool with a fully documented three-parameter schema and no output schema, the description is nearly complete. It explains what is returned, though it could say more about data-source selection or when to use this tool instead of list_tables.

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%, so the schema already documents table_name, schema, and dataSource. The description adds no parameter semantics beyond that, which is acceptable given the high coverage but does not exceed the baseline.

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 states a specific verb and resource: 'Describe a table,' then specifies the output as columns, data types, and constraints. That distinguishes it from list_tables or execute_query by intent, though it never names a sibling or states an explicit boundary.

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?

Usage is implied: inspect a table's structure when you need column names, types, or constraints. There is no explicit guidance on when to use this versus list_tables, list_data_sources, or execute_query, and no prerequisites are stated.

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