Skip to main content
Glama

Lookup Kit

postal_code

Read-only

ZIP code lookup, postal code to city, state and coordinates. Look up a postal or ZIP code in about 120 countries: place names, state or province, county and coordinates. Send country (2 letters) and code; for the UK, Canada and the Netherlands only the first part of the code (outward code, FSA) is covered. Data: GeoNames (CC BY 4.0). Price: $0.002 per call (x402, USDC on Base).

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_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
countryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false; the description adds genuinely non-obvious context: pricing ($0.002/call via x402 USDC), data provenance and license (GeoNames CC BY 4.0), and the significant coverage limitation that only the outward code/FSA is handled for UK, Canada and the Netherlands. It stops short of describing failure behavior for invalid or unsupported codes.

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?

It is front-loaded with the action and return fields, then constraints, then provenance and price. There is mild redundancy between the first two sentences ('ZIP code lookup, postal code to city, state and coordinates' vs. 'Look up a postal or ZIP code…'), but no sentence is wasted given the pricing and coverage facts conveyed.

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?

For a two-parameter lookup with no output schema, the description enumerates the returned data (place names, state/province, county, coordinates), the input format, coverage caveats, and cost — enough to call it correctly. Only the error/not-found path is unaddressed, which is a minor gap at this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description must carry the burden — and it does, clarifying that country is a 2-letter code and that code may legitimately be a partial (outward/FSA) value in certain countries. That semantic constraint is not derivable from the schema's minLength/maxLength alone.

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 opens with a specific verb+resource pair ('ZIP code lookup, postal code to city, state and coordinates') and immediately names the returned fields and coverage scope (~120 countries). An agent can tell this is a geocoding/lookup tool distinct from siblings like country_info or distance without inspecting the schema.

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?

It gives concrete usage conditions — 'Send country (2 letters) and code' and the partial-code caveat for UK/Canada/Netherlands — which tells an agent how to call it correctly. However, it never says when to prefer this over alternatives (e.g., country_info for country-level data) or what happens for unsupported countries, so usage guidance is implied rather than explicit.

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