Skip to main content
Glama

Location Toolkit (DIGIPIN, Plus Codes, PIN codes)

Clean a messy address from any country into structured fields, with India PIN, district and state checks

clean_address

AI turns free-text addresses (any language or format, e.g. "near water tank 2nd main rd AN chennai 40") into house, street, landmark, locality, city, district, state, postal code and country. Then checks the postal code format for the country, and for India that the PIN exists and matches the district and state, with warnings and suggested fixes. Never invents a postal code. Price 0.005 USDC per call; first 3 calls per day free.

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": {
      "address": "<address>"
    },
    "name": "clean_address"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesFree-text address (max 500 chars)
countryNoOptional 2-letter country hint, e.g. IN
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 a good job: it discloses the cost model (0.005 USDC per call, first 3 calls per day free), the payment header mechanism, and an important behavioral guarantee (never invents a postal code) plus the warning/suggested-fix output behavior. Remaining gaps are error behavior for unparseable input and how uncertain matches are represented.

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?

Purpose and example are front-loaded, and the pricing/payment sentence is short and useful. Slightly dense first sentence does a lot of work at once, but nothing is wasted or repeated.

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 must describe returns — and it does, enumerating the nine output fields and the warnings/suggested fixes. For a 3-parameter parsing+validation tool this is nearly complete; only error/fallback behavior when parsing fails is unstated.

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 address, country and payment are already documented inline. The description adds only marginal value beyond the schema — it implies language/format agnosticism and the free-sample condition for payment, but gives no extra detail on the country hint's effect on validation strictness.

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?

Names a concrete verb and resource (parse free-text address into structured fields) plus a second concrete behavior (postal-code format validation with India PIN/district/state checks). The worked example ("near water tank 2nd main rd AN chennai 40") makes the input shape unmistakable and separates it from the narrower postal_code_check and india_pincode_lookup siblings.

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

Usage Guidelines2/5

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

No explicit when-to-use or when-not-to-use guidance, and no mention of the sibling tools that also do postal/PIN checks. An agent must infer from the purpose text that this is the parse-and-validate tool rather than the pure lookup tools; the description never states that routing decision.

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