Look up postal code (120+ countries, GeoNames)
lookup_postal_codeUse this when you need the city, region/state and coordinates for a postal code, or the postal codes of a place name, to validate or complete an address in 120+ countries. For Mexico each match also carries colonia, municipio and estado. Offline and deterministic (GeoNames postal code table, CC BY 4.0, refreshed monthly). Some countries ship only the first part of the code (GB, CA, NL, IE, MT, CL, CN, AR) and partial matches are flagged. Supported countries: AD, AE, AI, AL, AM, AR, AS, AT, AU, AX, AZ, BD, BE, BG, BM, BR, BY, CA, CC, CH, CL, CN, CO, CR, CX, CY, CZ, DE, DK, DO, DZ, EC, EE, ES, FI, FK, FM, FO, FR, GB, GF, GG, GI, GL, GP, GS, GT, GU, HK, HM, HN, HR, HT, HU, ID, IE, IM, IN, IO, IS, IT, JE, JP, KE, KR, LI, LK, LT, LU, LV, MA, MC, MD, MH, MK, MO, MP, MQ, MT, MW, MX, MY, NC, NF, NL, NO, NR, NU, NZ, PA, PE, PF, PH, PK, PL, PM, PN, PR, PT, PW, PY, RE, RO, RS, RU, SE, SG, SI, SJ, SK, SM, TC, TH, TR, UA, US, UY, VA, VI, WF, WS, YT, ZA. Others return UNSUPPORTED_COUNTRY without charge.
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": "lookup_postal_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Batch mode: up to 500 items, each with the same fields as a single call. Omit when validating a single value through the top-level fields. | |
| query | No | Place / city / neighbourhood name to find postal codes for, e.g. "Monterrey", "Polanco", "Lisboa". Provide postalCode or query. | |
| country | No | ISO 3166-1 alpha-2 country code, e.g. "MX", "US", "DE", "ES", "BR". "UK" is accepted for "GB". | |
| maxResults | No | Maximum matches returned per item (1–100, default 20). | |
| postalCode | No | Postal code to resolve, e.g. "06600" (MX), "10001" (US), "SW1A" (GB outward code), "01310-000" (BR). Provide postalCode or query. |