Skip to main content
Glama

Agent Toolkit (all-in-one)

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

postal_code_check

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

A3.8/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 behavioral burden and does meaningful work: it discloses the monetization model (0.001 USDC per call, first 3 per day free) and that payment is not required while the free sample lasts. It does not state what happens on invalid input or whether the India existence check can return a negative result, which keeps it from a 5.

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 short sentences with zero filler: capability first, the India exception second, cost third. Everything an agent needs at a glance is front-loaded, and no sentence merely restates the tool name.

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 cover return values, and it does at least partially — cleaned form generally, plus district and state for India. It is appropriately sized for a 3-parameter validator; the only gap is the shape of a failure/negative response.

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 country, postal_code, and payment are already documented, and the baseline of 3 applies. The description adds real context for the payment parameter by explaining the free-tier threshold, but gives no format hints for postal_code per country (e.g., whether spaces or hyphens are tolerated).

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 format across 240+ countries and returns the cleaned form — plus the extra India behavior (existence check with district/state). An agent can distinguish this from a pure lookup tool. It stops short of naming the sibling india_pincode_lookup as the deeper alternative, so 4 rather than 5.

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?

Usage is implied: call it to verify a code's format, and expect richer results for India. There is no explicit when-not-to-use or routing instruction — e.g., whether to prefer india_pincode_lookup when the India district/state detail is the real goal — leaving the agent to infer the boundary from its sibling list.

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.