Skip to main content
Glama

Boundaries at a point

reverse_boundaries
Read-onlyIdempotent

Every administrative boundary containing a point, country first down to the smallest district. Use it to tag an address, a store or a delivery with its country, state, county and city in one call. Costs 1 unit. Returns ids you can pass to get_boundary. Answered from our own polygons in well under a second for any point on land or in territorial waters; postcode areas are not included in such an answer. Choose levels by kind: admin_level is OpenStreetMap's number and is null where we do not hold it. Only a point no division contains (open sea, Antarctica) is looked up in OpenStreetMap; when that is slow or down, the call answers the boundaries already cached with polygons, marked partial: true with retry_after and a hint (city, district or postcode may be missing), or 503 upstream_unavailable with retry_after when none is cached. A slow lookup keeps running, so the same call after retry_after is served complete from the cache. Needs an API key or a connected account.

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": "reverse_boundaries"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitude, -90 to 90.
lonYesLongitude, -180 to 180.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

The annotations cover the safety profile (readOnlyHint, idempotentHint, openWorldHint, destructiveHint=false), and the description adds substantial operational context beyond them: a cost of 1 unit, sub-second latency from own polygons, the exclusion of postcode areas, the OpenStreetMap fallback only when no division contains the point, and the degraded paths 'partial: true with retry_after' and '503 upstream_unavailable'. It also discloses the authentication requirement and the cache-based retry behavior.

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 most important information, the scope and the return handling, is front-loaded, and the cost is stated early. However, it is a single dense paragraph whose failure-handling clauses run together, and phrases such as 'well under a second' and 'on land or in territorial waters' add detail without affecting how the tool is called.

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 two-parameter lookup with no output schema, the description covers what the tool returns (boundary ids, levels by kind, null admin_level values), how to consume the result, cost, authentication and both failure modes. An agent can call it and interpret every response state without further information.

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 lat and lon are already fully documented in the schema, and the description adds no new semantics for those inputs. The note about admin_level describes the returned level values rather than an input parameter, 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 opening sentence states a specific operation on a specific resource: 'Every administrative boundary containing a point, country first down to the smallest district.' It also implies what it is not by noting that it returns ids to pass to get_boundary, which separates this point-based lookup from the id-based sibling.

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?

Concrete use cases are given ('tag an address, a store or a delivery') plus the alternative path ('Returns ids you can pass to get_boundary') and the caveat that postcode areas are excluded. What is missing is an explicit rule for choosing between this tool and search_boundaries, suggest_boundaries or contains_points, but the usage context for this tool is clear.

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