Look up a postal code
lookup_postal_codeWhich places does a postal code / ZIP code / postcode / PIN code / PLZ / CEP cover, and which state, province, county or district are they in? Returns every place name for the code with its first-, second- and third-level administrative units and coordinates. 124 countries (GeoNames). Accepts common input forms (e.g. "SW1A 1AA" maps to the outward code SW1A, "K1A 0B1" to K1A, ZIP+4 to the 5-digit ZIP, "1000001" to JP 100-0001).
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>",
"postal_code": "<postal_code>"
},
"name": "lookup_postal_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes | Country as an ISO 3166-1 alpha-2 code (AU, US, GB, DE, IN, PH, ...) or an English country name. | |
| postal_code | Yes | The postal code as written locally, e.g. 3220, 90210, 10115, 560001, SW1A 1AA, 100-0001. |