Skip to main content
Glama

List a Lookup Table's Rows

get_dimension
Read-onlyIdempotent

The rows of one shared lookup table: district, school, county, census tract, or demographic codes with their names and attributes, in key order so paging is stable. describe_dimension gives the schema. Pages are small; when truncated is true, bulk_export gives the REST API address for the full 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": {
      "name": "<name>"
    },
    "name": "get_dimension"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesLookup table (dimension) name: districts, schools, counties, tracts, block_groups, or demographics.
limitNoRows per page (default 100, at most 500).
offsetNoNumber of rows to skip, for paging.

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. Changed7 schema fields changed
    • addedInput schema / properties / limit / description
      Added value: +"Rows per page (default 100, at most 500)."
    • addedInput schema / properties / limit / maximum
      Added value: +500
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • 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"
      +]
    • addedInput schema / properties / offset / description
      Added value: +"Number of rows to skip, for paging."
    • addedInput schema / properties / offset / minimum
      Added value: +0
  3. First observed

TDQS

A4.5/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 safety needs no restating. The description adds real behavior the annotations don't: rows are returned in key order making paging stable, pages are deliberately small, and a `truncated` flag signals when to escalate to bulk_export.

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?

Three short sentences, front-loaded with what is returned and in what order, then the schema pointer, then the truncation escape hatch. No padding or restatement of the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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-value details are unnecessary; the description instead covers the parts structured data can't carry – ordering guarantees, page sizing, and what the upcoming truncated flag means. For a read-only paged list tool this is complete.

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?

Schema coverage is 100%, so limit/offset/name are already documented, making 3 the baseline. The description goes beyond that by guaranteeing a stable ordering under which offset paging is safe and by warning that pages are small, which shapes how an agent should set limit and interpret repeated calls.

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+resource ('the rows of one shared lookup table') and enumerates the concrete dimension types (district, school, county, census tract, demographics). It also explicitly separates itself from describe_dimension ('gives the schema'), so an agent can distinguish the two without opening either 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?

Routes the agent to describe_dimension for schema discovery and to bulk_export when the response is truncated, giving an explicit condition for the alternative. What's missing is any guidance relative to the query/aggregate siblings, but the paging-vs-full-export decision is fully covered.

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