Address format and postal code validation (252 countries, incl. all of Africa and India PIN codes)
address_format_lookupAddress format and postal code validation for 252 countries: postcode regex and examples, PIN code (India), ZIP and postal code names, address line order, required fields, and states or provinces with ISO 3166-2 codes. Covers all 54 African countries (says which have no postcodes), India, the Gulf and Asia. Pass postcode to check it; India PIN codes also return the state. Source: Google's open address metadata (Apache 2.0). Free here (20 calls per day).
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": "address_format_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No | Optional 2-letter ISO country codes, comma-separated, up to 60 (default: all 252 countries and territories) | |
| postcode | No | Optional postcode or PIN code to check against the format; needs exactly one country |