util_postal_code
Postal Code Validator — Validate and normalize a postal code offline for 62 countries (US ZIP and ZIP+4, Canada, UK, Ireland Eircode, Netherlands, Germany, France, Japan, Brazil CEP, India PIN, Poland, Portugal, Sweden and more). Pass code and country (2-letter ISO; UK accepted). Returns valid, the canonical form (e.g. sw1a1aa to SW1A 1AA, 1000001 to 100-0001) and the expected format; a bad code is 422 (not charged). Omit country to list every supported country whose format fits. Format check only - it does not confirm the code is in use. Price: $0.001 USDC (Base, via x402).
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": {
"code": "<code>",
"country": "<country>"
},
"name": "util_postal_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | SW1A1AA | |
| country | Yes | GB |