Skip to main content
Glama

Agent Toolkit (all-in-one)

Convert coordinates to DIGIPIN (India) and Plus Code (worldwide), or a code back to coordinates

location_code

[Location Toolkit] Send lat+lng to get the Plus Code (Open Location Code, works everywhere, ~14 m square) and, inside India, the official India Post DIGIPIN (~4 m square). Or send any DIGIPIN or Plus Code as "code" to get its coordinates and cell bounds. Pure maths, exact to the official specs. Price 0.001 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": "location_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude (-90..90). Use with lng.
lngNoLongitude (-180..180). Use with lat.
codeNoInstead of lat/lng: a DIGIPIN like 4P3-JK8-52C9 or a full Plus Code like 7J4VXH8P+2C
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.9/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral weight, and it does disclose pricing (0.001 USDC per call, 3 free daily), the India-only scope of DIGIPIN, and cell precision (~14 m / ~4 m). It does not explain behavior when inputs are ambiguous or omitted, nor what happens when DIGIPIN is requested for a non-India coordinate.

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-loaded with the primary action, then the reverse mode, then pricing. Dense but every clause carries information; only the bracketed service tag is filler.

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?

There is no output schema, so the description appropriately states what comes back (Plus Codes, DIGIPIN, coordinates and cell bounds). Pricing and the payment parameter are covered. The main gap is error/precedence behavior for the optional inputs.

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 baseline is 3. The description adds modest meaning by clarifying that 'code' accepts either a DIGIPIN or a full Plus Code and that lat/lng are used together, but most parameter detail is already in the schema.

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 states both directions precisely: "Send lat+lng to get the Plus Code ... and, inside India, the official India Post DIGIPIN" and "send any DIGIPIN or Plus Code as 'code' to get its coordinates and cell bounds." This distinguishes it from neighbors like india_pincode_lookup and postal_code_check, which operate on postal codes rather than coordinates.

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?

It clearly indicates the two input modes and marks 'code' as an alternative to lat/lng ("Instead of lat/lng"). What's missing is guidance on failure cases: what happens if neither or both input forms are supplied, since the schema marks all parameters optional.

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.