Skip to main content
Glama

Describe columns

schema_columns

Returns column definitions including data types, nullability, and primary/unique key flags for specified database tables, enabling schema inspection before diagramming or migration work.

Instructions

Return columns, types, nullability and PK/UK flags for the given tables.

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": {
      "tables": "<tables>"
    },
    "name": "schema_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
tablesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.3/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 burden; it does disclose the shape of the returned metadata (types, nullability, PK/UK flags), which is useful behavioral context. It says nothing about behavior for unknown or unauthorized tables, whether names must be schema-qualified, or whether the call has any side effects, leaving notable gaps for an unannotated tool.

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?

A single front-loaded sentence that states the resource and the returned fields with zero filler. Nothing is redundant or buried.

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 one-parameter read tool with no output schema, the description conveys the returned fields, which is the main thing an agent needs. It falls short on input format for table names and on error semantics, so it is adequate but not complete.

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 0% for the single required 'tables' parameter, so the description must compensate, but 'for the given tables' merely restates the parameter name. It does not specify naming format, case sensitivity, schema qualification, or behavior at the 50-item limit.

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?

Names a specific verb and a concrete set of returned attributes (columns, types, nullability, PK/UK flags) scoped to given tables, which is more informative than a generic 'describe' restatement. It does not explicitly contrast itself with siblings such as schema_tables or schema_er, so an agent must infer the distinction from the return payload.

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 only implied: the phrase 'for the given tables' suggests you must already know table names, hinting that schema_tables should be called first. There is no explicit when-to-use, when-not-to-use, or named alternative among schema_er, schema_query, or schema_tables.

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