Skip to main content
Glama

x402_zipgeo_get_v1_zip_country_code

Resolve a postal or ZIP code into city, region, and country details across 60+ countries for location lookup.

Instructions

zipgeo — Zip/postal code to place lookup (Zippopotam.us, 60+ countries). Use when an agent has a postal code and needs city/region/country. [GET /v1/zip/{country}/{code}] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/zip/us/90210

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "x402_zipgeo_get_v1_zip_country_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden and does meaningful work: it reveals the upstream provider, the concrete endpoint, and that each call costs $0.005 USDC across four chains — payment and cost context an agent must know before invoking. It omits rate limits, failure behavior for unknown postal codes, and how the schema's restart/operationId retry semantics interact with paid calls.

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?

The purpose and trigger condition are front-loaded in the first two sentences, then endpoint, price, and example are appended compactly with no filler. The cost/chain string is dense and slightly cryptic, but every element is informative rather than redundant.

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?

For a simple single-lookup tool this covers purpose, provider, cost, endpoint, and the returned fields, which compensates for the missing output schema. However, the mismatch between the four generic schema parameters and the two path parameters the tool actually needs is left unresolved, and there is no guidance on not-found or error outcomes.

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 the baseline is 3, and the schema's four properties (body, query, restart, operationId) are all documented. The description adds the path template and a concrete example (/v1/zip/us/90210), but it never explains how the country and code segments map onto the tool's arguments, which are absent from the schema — a real ambiguity for correct invocation.

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?

The description states a specific verb and resource: 'Zip/postal code to place lookup', naming the provider (Zippopotam.us) and coverage (60+ countries), and it clarifies what comes back (city/region/country). It does not explicitly differentiate itself from the closest siblings (country lookups, flags, holidays), relying on the postal-code framing to do that work implicitly.

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?

'Use when an agent has a postal code and needs city/region/country' gives a clear triggering condition that an agent can match against intent. There is no when-not guidance, no mention of what to do on a miss, and no named alternative tool for related geographic lookups.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools