Skip to main content
Glama

get_schema

Return column names, Arrow data types, and nullability for a registered table (LIMIT 0 scan).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableNoTable name (default: the first registered table)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does add a genuinely useful behavioral detail — '(LIMIT 0 scan)' — which tells the agent this is a cheap, non-destructive metadata read that returns no rows. It says nothing about what happens with an unregistered or misspelled table name, nor about cost on large catalogs, so the disclosure is partial.

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?

One sentence, front-loaded with the payload (what is returned) and finished with the cost mechanism. Nothing is padded or redundant.

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 single-parameter metadata read with no output schema, the description usefully enumerates the return fields itself, so the agent knows what to expect. The only gap is error/edge-case behavior for an invalid or missing table name.

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% and the single parameter's schema text already documents both its meaning and its default ('the first registered table'). The description adds nothing about the parameter, which is acceptable at baseline 3 but is a missed opportunity to note default-resolution behavior.

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?

States a specific verb ('Return') and enumerates exactly what comes back: column names, Arrow data types, nullability, scoped to a registered table. That is far more precise than a generic 'get schema'. It does not name or differentiate from siblings like column_statistics or list_tables, which keeps it at 4 rather than 5.

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 statement of when to reach for this tool versus column_statistics, list_tables, or query_sql. The phrase 'for a registered table' hints at a prerequisite, but the agent must infer the workflow (inspect schema before writing SQL) entirely on its own.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.