Skip to main content
Glama

resolve_entity

Resolve a place or demographic NAME or CODE to its stable keys + labels — the right way to turn 'Atlanta Public Schools' / 'Fulton' / a raw code into the district_code / school_code / county_fips / demographic to filter by (a wrong code guess otherwise returns an empty query_dataset page). kind is district / school / county / demographic ('Fulton' as kind='county' → the county; as kind='district' → the school district — they are different things). Fuzzy-matches and ranks candidates, flags ambiguous when several tie, and reads only the small dimension table (no fact scan). A real Georgia place is never matched to a different one: a consolidated city returns its county (matched_on=consolidated_city: 'Columbus' -> Muscogee), another city asked as a county returns the county it lies in flagged ambiguous, and a one-letter misspelling returns matched_on=typo. A city school system answers to any common shape of its name (matched_on=city_system: 'Decatur City' / 'Decatur Public Schools' -> City Schools Of Decatur), and a county's system to its place name (matched_on=county_system: 'Gwinnett Public Schools' / 'Cobb Schools' -> the county's district). Read place_note and tell the user when it is present.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYes
limitNo
queryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so richly: fuzzy matching and ranking, the `ambiguous` tie flag, that it reads only the small dimension table (no fact scan), the matched_on taxonomy (consolidated_city, typo, city_system, county_system), and the instruction to surface `place_note`. These are non-obvious behaviors an agent could not infer from the schema.

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?

Front-loaded with purpose and the why before the behavioral detail. The matched_on examples are dense but each earns its place by disambiguating a real failure mode. It is longer than strictly necessary, with several parenthetical examples that could be trimmed.

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 fields need not be enumerated, yet the description still pre-empts the key output semantics an agent must act on (ambiguous, matched_on, place_note). Combined with the usage rationale, nothing an agent needs to call this correctly 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?

Schema coverage is 0%, so the description must compensate. It fully documents `kind` (district/school/county/demographic with worked examples) and richly illustrates `query` semantics via name/code examples. The `limit` parameter is never mentioned, leaving one of three parameters undocumented in both places.

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 ('Resolve a place or demographic NAME or CODE to its stable keys + labels') and immediately names the concrete artifacts it produces (district_code / school_code / county_fips / demographic). It also distinguishes itself from the sibling query_dataset by explaining that a wrong code guess returns an empty page, so an agent can tell why it should call this first.

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?

Clear context for use: converting human names or raw codes into filter keys before querying, with an explicit warning that guessing codes yields empty results. It also flags the kind='county' vs kind='district' distinction. There is no explicit 'when not to use this' or a named alternative for the reverse direction, so it falls short of a 5.

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