Skip to main content
Glama

Locate a point

locate_point
Read-only

Which geographies contain a point: precinct, county, town, city, city council and county board district, congressional and state legislative districts in the US; province, census division and subdivision, federal riding, polling divisions and provincial districts in Canada. Point-in-polygon on stored boundaries (simplified to ~10 m, so a point within ~10 m of a line can land on either side). For a US street address, call lookup_address instead.

levels: restrict to some levels (default: all except 'vtd_2020'). If a point is just outside every shape of a
level that its state/province has (a pier, a beach, a gap between precinct files), it is matched to the nearest
shape of that level in the same state/province within ~1 km and flagged approximate=true with distance_m.
not_found lists levels the state/province has data for but no shape here; no_data lists levels with no
boundaries there at all (e.g. Nebraska has no state house; Ontario has no provincial polling divisions here).
'council_district' (city council district or ward) and 'county_district' (county supervisor, commissioner or
council district) are on file for the largest cities and counties only: elsewhere they come back under
not_on_file, which means no map here yet or a body elected at large, not that the point is outside one.

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": {
      "lat": "<lat>",
      "lon": "<lon>"
    },
    "name": "locate_point"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYes
lonYes
levelsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnlyHint and openWorldHint annotations, the description discloses the point-in-polygon method, boundary simplification to about 10 m, nearest-shape fallback within about 1 km, and approximate=true with distance_m. It also explains several result categories that materially affect interpretation.

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?

The content is front-loaded with purpose, method, and the key alternative before moving into levels and edge-case semantics. It is dense and lengthy, but nearly all of it is useful for a complex geospatial lookup; minor structural improvements could split the long paragraph.

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 complex lookup with no output schema and minimal schema descriptions, the definition is complete: it covers covered geographies, method accuracy, default behavior, fallback matching, and result flags. An agent has enough information to invoke and interpret the tool correctly.

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 description coverage is 0%, so the description must carry parameter meaning. It thoroughly explains the levels parameter, including its default and level categories, but it does not specify coordinate system or precision expectations for lat and lon beyond their obvious names.

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 opens with a specific verb and resource: determining which geographies contain a point, followed by the exact geography types covered in the US and Canada. It explicitly distinguishes itself from lookup_address for US street addresses, so an agent can select it confidently.

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?

It gives clear when-to-use guidance, names lookup_address as the alternative for street addresses, and explains the levels restriction plus the default level set. It also defines not_found, no_data, and not_on_file so the agent understands result conditions before calling.

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