postal_code
Resolve postal codes to place names, state, and coordinates, or retrieve postal codes by city and state across 70 countries.
Instructions
Postal Code Lookup — Postal codes for 70 countries (GeoNames via zippopotam.us): postal code to place names, state and coordinates, or city + state to all its postal codes. For GB, CA and IE only the outward part (e.g. SW1A) is resolved. Params: country (ISO2, required), postal_code, or city + state (state abbreviation, e.g. CA, BY). Cost: $0.0025 USDC per call. Latency p99: 1500ms.
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>"
},
"name": "postal_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | ||
| state | No | State abbreviation, required with city | |
| country | Yes | ISO 3166-1 alpha-2 | |
| postal_code | No |