Skip to main content
Glama

get_layer_schema

Read-onlyIdempotent

Get column names, types, and values for a layer (all of them for a column with at most 20; distinct_count; up to 50 values with row counts). Use BEFORE querying to discover what columns exist and what values they contain. Essential for knowing the right column names for filters.

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": {
      "layer_id": "<layer_id>"
    },
    "name": "get_layer_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
layer_idYesLayer ID (e.g. lgd_states, airports, soi_forests, wards_chennai)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description's real contribution is disclosure of truncation behavior (all distinct values only when <=20; otherwise up to 50 values with row counts), which is genuinely useful. However it says nothing about cost, response size, or how a column with many distinct values is chosen, so the behavioral picture 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the resource and return shape, then the usage constraint. Mostly tight, though the final sentence ("Essential for knowing the right column names for filters") restates the preceding discovery claim and could be trimmed.

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, non-destructive read tool with a fully documented schema, the description supplies the essentials: what comes back, how values are truncated, and when to call it. The absence of an output schema makes the sampling detail especially valuable; only the value-selection rule for high-cardinality columns is left ambiguous.

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% and layer_id already carries example IDs (lgd_states, airports, etc.), so the description cannot add much. It does not explain layer_id semantics beyond what the schema documents, making this the baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Get column names, types, and values for a layer") and immediately specifies the return shape, including sampling rules (all values when distinct <=20, up to 50 values with row counts). An agent can tell this is a schema-inspection tool distinct from query_layer without opening the schema.

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

Usage Guidelines4/5

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

Explicitly prescribes ordering and context: "Use BEFORE querying to discover what columns exist and what values they contain" and "Essential for knowing the right column names for filters." It implies the query tool as the follow-up alternative but never names it or states when-not to use this one, so it falls short of full alternative routing.

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.