Skip to main content
Glama
atlasfetch-dev

atlasfetch-mcp

Official

Look up the boundaries containing a coordinate

lookup_location
Read-only

Reverse geocode coordinates to country, region, and municipality with ISO codes, and check if a point falls inside your uploaded boundary sets.

Instructions

Reverse geocode a coordinate to the administrative areas that contain it — country, region (state or province) and municipality — as names plus ISO 3166 codes, and match it against boundary sets the account has uploaded, in the same call.

Use for: which country, region or municipality a point is in; geofence checks against your own polygons; tagging data with region codes. Do NOT use for: street addresses or postcodes (this is not forward geocoding, and results stop at the municipality), routing, distances, or fetching boundary geometry.

Caveats worth repeating to the user: municipal is the finest unit AVAILABLE, not a consistent kind of thing — Los Angeles returns a city, rural Kansas returns a county, so do not assume it names a city. A layer that matched nothing comes back null. The errors array is always present: a boundary set that is unavailable or not granted to this key is skipped and reported there, while the call itself still succeeds.

One call is one billed lookup however many layers, sets or grid codes it touches, and a call that matches nothing still bills.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latYesLatitude, -90 to 90.
lngYesLongitude, -180 to 180.
baseNoWhich reference layers to resolve. Defaults to all three.
setsNoNames of the boundary sets on this account to match against. Defaults to none.
h3resNoH3 resolution 0-15. 9 is about 400 m across.
encodeNoAlso return the point as an H3 cell index and/or Google Plus Code. Output only — neither can be used AS a location, because both name areas rather than points.
pluslenNoPlus Code length. 9 is not a valid length. 10 is about 14 m.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only provide readOnlyHint=true and openWorldHint=true. The description adds substantial behavioral context: municipal is the finest unit available, non-matching layers return null, the errors array is always present with skipped sets, and the billing behavior ('one billed lookup however many layers...'). These go far beyond the annotations and directly inform how the agent should interpret results and costs.

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 description is longer than average but every sentence carries information: purpose, use-for, do-not-use-for, caveats, error handling, and billing. It is front-loaded with the core function and uses clear paragraph breaks. A slight reduction would be possible, but there is no fluff or repetition, so it earns a high score.

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?

For a tool with 7 parameters and no output schema, the description is highly complete: it covers usage scope, exclusions, caveats about municipal granularity, null results, the always-present errors array, and billing implications. It does not explicitly describe the JSON response shape beyond 'names plus ISO 3166 codes', which would be helpful, but given that the schema and examples are absent, it still provides enough context for an agent to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all 7 parameters are already documented individually. The description does not add per-parameter detail, but it integrates the parameters conceptually (layers, sets, grid codes) and clarifies that some parameters only affect output encoding. This is adequate but not a significant improvement over the schema, so the baseline of 3 is appropriate.

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 — 'Reverse geocode a coordinate ... as names plus ISO 3166 codes, and match it against boundary sets' — and clearly differentiates itself from siblings list_boundary_sets, create_boundary_set, and add_boundary, which are about managing boundary sets rather than geocoding. No ambiguity about what the tool does.

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 explicitly lists when to use the tool ('Use for: which country, region or municipality a point is in...') and when not to use it ('Do NOT use for: street addresses or postcodes... routing, distances, or fetching boundary geometry'). The exclusions and the reason ('results stop at the municipality') make the decision boundary unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.