Skip to main content
Glama

Describe a Lookup Table

describe_dimension
Read-onlyIdempotent

The schema of one shared lookup table (a dimension: districts, schools, counties, tracts, block_groups, or demographics): its key columns (schools use district_code plus school_code together), the attribute columns a join adds, the keys that link to other data (link_keys: districts.district_census_id reaches Census data through a crosswalk; it is a 5-digit Census school-district code, not a county FIPS code), and, for demographics, how the values relate (semantics: groups may overlap across or within categories; use the dataset's definitions and non_additive declarations, and its published all total when available). Useful before a link_query join.

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

Input Schema

NameRequiredDescriptionDefault
nameYesLookup table (dimension) name: districts, schools, counties, tracts, block_groups, or demographics.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / name / enum
      Previous value: -[
      -  "block_groups",
      -  "counties",
      -  "demographics",
      -  "districts",
      -  "schools",
      -  "tracts"
      -]New value: +[
      +  "block_groups",
      +  "counties",
      +  "demographics",
      +  "districts",
      +  "place_counties",
      +  "places",
      +  "schools",
      +  "tracts"
      +]
  2. Changed2 schema fields changed
    • addedInput schema / properties / name / description
      Added value: +"Lookup table (dimension) name: districts, schools, counties, tracts, block_groups, or demographics."
    • addedInput schema / properties / name / enum
      Added value: +[
      +  "block_groups",
      +  "counties",
      +  "demographics",
      +  "districts",
      +  "schools",
      +  "tracts"
      +]
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real value beyond that by warning about the census crosswalk ('a 5-digit Census school-district code, not a county FIPS code') and about overlapping demographic groups and non_additive declarations, which head off common misinterpretations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

Everything is front-loaded into a single long sentence with deeply nested parentheticals, which makes it dense to parse even though no clause is truly superfluous. Splitting the schema contents from the caveats would have improved scanability.

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?

The tool is simple, has a fully described single enum parameter, and ships an output schema, so the description needn't explain return values. What it does cover, the keys, the join behavior and the demographic caveats, is sufficient for correct invocation; only minor structural clarity is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is one parameter, and the enum plus schema description already cover the valid values, setting the baseline at 3. The description goes further by clarifying that schools require district_code together with school_code and by enumerating what each named dimension resolves to, adding meaning the schema does not carry.

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?

The description names a specific verb-and-resource pair ('the schema of one shared lookup table') and then enumerates precisely what the response contains: key columns, attribute columns added by a join, link keys, and value semantics. It is clearly distinguishable from siblings like describe_dataset or get_dimension because it scopes itself to a single dimension's 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?

'Useful before a link_query join' gives a concrete triggering context, so an agent knows when this tool is the right prerequisite. It stops short of naming when not to use it or pointing at a sibling for alternative needs, which keeps it out of 5 territory.

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.

Resources