Skip to main content
Glama

Find a Place or Group Code

resolve_entity
Read-onlyIdempotent

Turns a place or demographic name or code into the code the data uses (district_code, school_code, county_fips, place_fips, or demographic) with its label, e.g. 'Atlanta Public Schools' or 'Fulton'. A guessed code otherwise returns an empty page. kind is district, school, county, place (an incorporated city or town), or demographic; 'Fulton' as a county is the county and as a district is the school district, which are different things. Matches loosely, ranks candidates, and flags ambiguous when several are close. A real Georgia place is never matched to a different one: a consolidated city returns its county ('Columbus' -> Muscogee, matched_on=consolidated_city), another city asked as a county returns the county it is in, flagged ambiguous, and a one-letter misspelling returns matched_on=typo. As a place, a consolidated city is its city-county government ('Athens' -> Athens-Clarke County unified government, matched_on=consolidated_city), and a county name is never a city ('Union' offers Union City, flagged ambiguous). A city school system answers to the common forms of its name ('Decatur Public Schools' -> City Schools Of Decatur, matched_on=city_system), and a county's system to its place name ('Cobb Schools' -> the county's district, matched_on=county_system). A school or district is also found by an earlier name ('Brookhaven Innovation Academy' -> BIA Charter School, matched_on=former_name). place_note, when present, explains the match and is worth passing on to the user. Census tracts have no kind here: filter by tract_geoid, the 11-digit Census tract ID.

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": {
      "kind": "<kind>",
      "query": "<query>"
    },
    "name": "resolve_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesWhat the name is: district, school, county, place (an incorporated city or town), or demographic.
limitNoMost candidates to return (default 10, at most 50).
queryYesThe name or code to look up, e.g. 'Fulton'.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / kind / description
      Previous value: -"What the name is: district, school, county, or demographic."New value: +"What the name is: district, school, county, place (an incorporated city or town), or demographic."
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "district",
      -  "school",
      -  "county",
      -  "demographic"
      -]New value: +[
      +  "district",
      +  "school",
      +  "county",
      +  "place",
      +  "demographic"
      +]
  2. Changed6 schema fields changed
    • addedInput schema / properties / kind / description
      Added value: +"What the name is: district, school, county, or demographic."
    • addedInput schema / properties / kind / enum
      Added value: +[
      +  "district",
      +  "school",
      +  "county",
      +  "demographic"
      +]
    • addedInput schema / properties / limit / description
      Added value: +"Most candidates to return (default 10, at most 50)."
    • addedInput schema / properties / limit / maximum
      Added value: +50
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • addedInput schema / properties / query / description
      Added value: +"The name or code to look up, e.g. 'Fulton'."
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With readOnly/idempotent annotations already covering the safety profile, the description adds substantial behavioural detail: loose matching, candidate ranking, an `ambiguous` flag, and specific matched_on values (consolidated_city, typo, city_system, county_system, former_name) that explain how matches are produced. It also discloses `place_note` and the important limitation that census tracts are not a supported kind — only a light gap remains on result ordering and how ranked candidates are truncated by `limit`.

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?

The lead sentence is front-loaded and precise, but the body is a long run of examples that overlap thematically — consolidated-city behaviour is described twice in near-identical terms ('Columbus' as county vs 'Athens' as place), and the matched_on taxonomy is restated several times. It remains readable, but several sentences could be consolidated without losing meaning.

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?

For a moderately complex entity-resolution tool, the description covers the essential decision space: what it returns, how ambiguous and typo cases behave, what `place_note` is for, and an explicit out-of-scope case (census tracts, use tract_geoid). With an output schema present, return structure need not be spelled out, and nothing an agent needs to call it 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 100%, so the schema already documents all three parameters, but the description goes further on `kind` semantics: it explains that 'Fulton' as a county and as a district are different entities, and that 'place' means an incorporated city or town. The `limit` parameter is left to the schema, and `query` gets only illustrative examples, so it is above baseline but not exhaustive.

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 first sentence states a specific verb and resource: it converts a place or demographic name/code into the canonical code used by the data, naming the exact code fields (district_code, school_code, county_fips, place_fips, demographic). This is unmistakably a resolution/lookup tool, distinguishable from siblings that aggregate, describe, or query datasets.

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?

Usage context is clear and motivated: the note that 'a guessed code otherwise returns an empty page' tells the agent to resolve names before filtering. What's missing is explicit routing — no sibling (e.g. lookup_school_zone, query_dataset) is named as the alternative or follow-up, so the agent must infer where this fits in a workflow.

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