Skip to main content
Glama

Agent Toolkit (all-in-one)

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

reverse_lookup

[Location Toolkit] 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

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the GeoNames data basis (170,000+ towns), the count of results (3), the exact return fields, the India-only PIN enrichment, the accuracy ceiling, and the pricing model (0.002 USDC per call, first 3 daily free). It does not say what happens when coordinates fall in open ocean or when the free quota is exhausted and payment is absent.

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-loads the core purpose, then layers in scope, caveat and price; no sentence is filler. The opening clause is dense and slightly run-on, but it remains readable and everything included earns its place.

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 no annotations and no output schema, the description covers returns, accuracy, data source and cost, which is what an agent needs to decide and invoke. The remaining gap is the missing-input behavior, since required is empty but the tool cannot run without coordinates or a code.

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 and payment, including that code is an alternative to lat/lng. The description confirms the lat/lng-versus-code alternative and the DIGIPIN/Plus Code formats, but adds little beyond the structured field text; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise verb+resource: reverse lookup from coordinates (or DIGIPIN/Plus Code) to the 3 nearest populated places with region, country and distance, plus nearest Indian PIN. The scope is concrete enough to distinguish it from a forward geocoder, but it never names or contrasts a sibling such as india_pincode_lookup, which also returns Indian PIN data.

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

Usage Guidelines3/5

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

The description implies the input mode (coordinates or a code) and flags the key limitation ('Approximate (town level), not a street address'), so usage is inferable. However, it gives no explicit when-to-use guidance versus india_pincode_lookup for Indian PINs or distance_between for pair distances, and it does not warn that at least one of lat/lng or code must be supplied.

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.