Skip to main content
Glama

Get Table Columns

get_table_columns

Retrieve column names and data types for a specific DuckDB table to inspect its schema before configuring dashboards, KPIs, or SQL queries.

Instructions

Get the column names and types for a specific table.

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": "get_table_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
table_nameYesTable name in DuckDB (e.g. "sales", "my_data").

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 full burden. The word "Get" implies a read-only, non-destructive operation, but the description says nothing about what happens for a nonexistent table, whether views/temp tables are covered, or any cost limits. For a simple metadata read this is a modest but real gap.

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?

One sentence, front-loaded with the verb and the returned data, with zero filler. It is efficient, though its brevity borders on under-specification rather than optimal density.

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?

An output schema exists, so return values need not be explained, and the lone parameter is fully documented. Still, for a tool whose whole purpose is schema discovery, the description omits error behavior and any relation to primary-key/type detail that the output may carry.

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 100% for the single table_name parameter, including an example, so the schema already does the work. The description's "for a specific table" adds nothing beyond it; baseline 3 applies.

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 gives a specific verb and resource ("Get the column names and types") scoped to "a specific table," which is unambiguous on its own. It does not distinguish itself from the sibling detect_columns or explain how it differs from preview_table, so an agent must guess which to call.

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 explicit when-to-use statement, no prerequisites (e.g. the table must already be loaded/listed), and no mention of alternatives. With a sibling literally named detect_columns, the lack of routing guidance is a real gap.

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