Skip to main content
Glama

Location Toolkit (DIGIPIN, Plus Codes, PIN codes)

Coordinates to nearest towns worldwide (town, region, country, distance), plus nearest PIN code inside India

reverse_lookup

Reverse lookup from coordinates (or a DIGIPIN / Plus Code) to the 3 nearest populated places from GeoNames (170,000+ towns worldwide) with region, country and distance in km. Inside India it also returns the nearest PIN code with district and state. Approximate (town level), not a street address. Price 0.002 USDC per call; first 3 calls per day free.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "reverse_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude. Use with lng.
lngNoLongitude. Use with lat.
codeNoInstead of lat/lng: a DIGIPIN or Plus Code
paymentNoOptional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does substantial work: it discloses the pricing model (0.002 USDC per call, first 3 calls per day free), the accuracy class (approximate town level), and what the response contains including the India-specific PIN/district/state behavior. Remaining gaps are error behavior for invalid coordinates or calls that supply neither lat/lng nor code.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences, front-loaded with capability and output content, followed by the accuracy caveat and pricing. No filler, and each sentence contributes information an agent needs.

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?

Given no output schema, the description adequately describes the return payload (town, region, country, distance, plus PIN/district/state in India) and the cost surface. The one notable omission is that all four parameters are optional and the description never states that one of lat/lng or code is in practice required.

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 coverage is 100%, so the schema already documents lat, lng, code (DIGIPIN/Plus Code) and payment. The description only reinforces the mutual exclusivity of code versus lat/lng and the payment context, adding little semantic detail beyond the structured fields; baseline 3 applies.

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?

States a specific verb and resource ('reverse lookup from coordinates ... to the 3 nearest populated places from GeoNames') with concrete scope: 170,000+ towns, region/country/distance, and an India-only PIN code extension. An agent can tell this apart from siblings like distance_between or india_pincode_lookup without opening any schema.

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?

Gives clear context for when to call it (coordinates or a DIGIPIN/Plus Code as input) and an explicit scope caveat that it is 'Approximate (town level), not a street address', which tells an agent to avoid it for street-level geocoding. It does not name a specific alternative for the street-address case, so it falls short of the top score.

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