Skip to main content
Glama
This connector has been deprecated in the official MCP Registry

Search geographies

search_geographies
Read-only

Find geographies by name and get their IDs: 'Austin, TX', 'Cook County', '78701', 'Toronto Centre', 'Newark ward 5', or a congressional district as 'TX-21' or "Texas's 21st congressional district".

Results are the best name matches, most populous first, as id, level, name, full_name, region and population;
call get_geography(id) for the full record. `more` is true when there are further matches: add the state
('Springfield, MO') or a filter. country: 'US' or 'CA'. level: one of the levels from coverage_summary (e.g.
'place', 'county', 'zcta', 'congressional_district', 'federal_electoral_district'). region: USPS state or
province code ('NJ', 'ON'). This searches names, not street addresses: for an address call lookup_address.

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

Input Schema

NameRequiredDescriptionDefault
levelNo
limitNo
queryYes
regionNo
countryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / limit / default
      Previous value: -20New value: +10
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), and the description adds real value on top: fuzzy "best name matches," ordering most populous first, the return field list, and the meaning of the `more` flag. It stops short of stating a default/maximum result count or behavior for zero matches, which is the remaining gap.

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 input examples before the result shape and parameter notes, which is the right order. The middle section is dense and mixes result fields, the `more` flag, and filter definitions in one block, so it reads as a wall of text rather than scannable structure.

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?

No output schema exists, so the description correctly spells out the returned fields and ordering, and it explains the follow-up call to get_geography. For a five-parameter search tool the only meaningful omission is `limit` and any statement about result-set size or empty results.

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?

With 0% schema coverage the description must carry the load, and it does for most parameters: country is constrained to 'US'/'CA', level is tied to the values in coverage_summary with examples, and region is defined as a USPS state/province code. `limit` is never mentioned, leaving one of five parameters undocumented in both schema and description.

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?

Opens with a specific verb and resource: "Find geographies by name and get their IDs." The concrete query examples ('Austin, TX', '78701', 'TX-21') make the accepted input space unambiguous and distinguish it from siblings such as list_geographies and lookup_address.

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

Usage Guidelines5/5

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

Explicit routing: "call get_geography(id) for the full record" and "This searches names, not street addresses: for an address call lookup_address." It also prescribes the remediation when `more` is true (add state or a filter), so the agent knows both the alternative tool and the next action.

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