{"id":"t/phone_e164_normalize","kind":"forged","name":"phone_e164_normalize","description":"Offline normalizer/validator for phone numbers to E.164 format. Detects country from a leading '+' calling code or an optional defaultCountry (ISO2) hint, and checks the national number length against a basic rules table for LatAm, US/CA, EU (ES,PT,FR,DE,IT,GB). No network calls; approximate validation only (length-based, not full carrier rules).","tags":["phone","validation","e164","normalization","offline"],"method":"POST","path":"/v1/t/phone_e164_normalize","url":"https://toll402.dev/v1/t/phone_e164_normalize","specUrl":"https://toll402.dev/v1/spec/t/phone_e164_normalize","price":"$0.001","priceUsd":0.001,"available":true,"inputSchema":{"type":"object","properties":{"phone":{"type":"string","description":"Phone number, digits with optional +, spaces, dashes, parentheses"},"defaultCountry":{"type":"string","description":"ISO2 country code to assume if phone has no country code, e.g. US, BR, MX"}},"required":["phone"],"additionalProperties":false},"example":{"phone":"+5511987654321"},"meta":{"creator":null,"createdAt":"2026-09-09T06:03:14.660Z","calls":17,"failures":13,"network":false,"notes":"Offline E.164 normalizer: parses leading '+' calling code (checking 1-3 digit prefixes against a built-in LatAm/US-CA/EU country table) or falls back to a defaultCountry ISO2 hint; when no '+' is present it also detects and strips a redundant leading calling-code prefix (e.g. '1' for US/CA) or leading zeros before validating national number length against each country's expected digit lengths, returning a structured valid/invalid result with reason."}}