Skip to main content
Glama

Location Toolkit (DIGIPIN, Plus Codes, PIN codes)

Check if a postal code has a valid format for any of 240+ countries (full lookup for India)

postal_code_check

Validates postal / ZIP / PIN code format for 240+ countries and returns the cleaned form. For India it also checks that the PIN really exists and returns district and state. Price 0.001 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": {
      "postal_code": "<postal_code>",
      "country": "<country>"
    },
    "name": "postal_code_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
countryYes2-letter country code, e.g. IN, US, GB, DE
paymentNoOptional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts.
postal_codeYesThe postal code to check

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose cost (0.001 USDC per call, first 3 calls daily free) and payment requirements, which is genuinely useful, but it says nothing about invalid-input behavior, error responses, rate limiting beyond the free tier, or what the 'cleaned form' looks like.

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?

Three short, front-loaded sentences with no filler: capability first, India special case second, pricing third. Slightly dense in the India sentence but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description should say more about what is returned — it only hints at a 'cleaned form' and, for India, district and state. Pricing and payment are well covered, but the return shape for the other 239 countries (a boolean? a normalized string? an error?) is left implicit.

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% and the description adds nothing beyond the schema for postal_code, country, or payment — the 'first 3 calls free' note repeats the schema's payment caveat. Baseline 3 is appropriate when the schema already fully documents all three parameters.

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 specific verb and resource ('validates postal / ZIP / PIN code format') plus the 240+ country scope, and calls out that India gets a deeper existence check with district and state. It never names india_pincode_lookup, so the agent must infer the routing between them from the 'also checks' phrasing.

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; it never says whether to prefer india_pincode_lookup for Indian PINs or use this tool, even though the India existence check clearly overlaps that sibling. The only contextual signal is the implicit 'use this to validate a code before using an address'.

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