Skip to main content
Glama

postal

postal
Read-only

Postal code lookup for 60+ countries (US, CA, GB, DE, FR, ES, IT, BR, AR, IN, JP, AU and more): the places that share the code with state or region, state code and coordinates. Mexican codes have their own richer endpoint (/api/v1/cp). Price: $0.002 USDC per call (x402).

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": {
      "country": "<country>",
      "code": "<code>"
    },
    "name": "postal"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesPostal code; UK uses the outward code, e.g. SW1A
countryYes2-letter ISO country code, e.g. us, de, br

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds genuinely new behavior: a per-call price of $0.002 USDC via x402, and the fact that results are multi-place (a code can map to several localities). It does not mention failure modes for unsupported countries or rate limits, which keeps it short of 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two dense sentences, front-loaded with purpose and coverage before the Mexican exception and the price. The parenthetical country list is slightly padded but serves as a concrete coverage signal.

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

Completeness5/5

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

No output schema exists, yet the description still characterizes the return shape (places, state/region, state code, coordinates), plus cost and country coverage. For a simple 2-parameter read tool that is everything an agent needs to call it correctly.

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% – both `country` (2-letter ISO) and `code` (UK outward code, e.g. SW1A) are already documented in the schema. The description's UK note and country list largely restate that, so it adds little meaning beyond structured data; baseline 3 applies.

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?

States a specific verb+resource ('Postal code lookup') with its scope ('60+ countries') and even enumerates what comes back: places sharing the code plus state/region, state code and coordinates. It also carves out the Mexican case as served by a separate endpoint, so an agent can distinguish it from the `cp` sibling.

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?

The definition explicitly steers Mexican postal codes away to the richer /api/v1/cp endpoint, which is clear when-not-to-use guidance. It does not name the corresponding sibling tool ('cp') directly nor state prerequisites such as an x402 payment setup, leaving a little inference to the agent.

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