enrich_phone
Parse and validate phone numbers in any format, returning E.164 normalization, line type, country code, and carrier region with per-lookup cost.
Instructions
Parse and validate a phone number.
Normalizes to E.164 format, detects line type (mobile/landline/voip), and returns the carrier region.
Args: phone: Phone number in any format (e.g. "415-555-2671", "+44 20 7946 0958") country_hint: ISO 3166-1 alpha-2 country code to assume when no country prefix is given (default "US")
Returns: dict with keys: valid, e164, national, country_code, line_type, cost_usd
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes | ||
| country_hint | No | US |