format_phone
Parse and validate phone numbers, then format them into E.164, national, and international formats while identifying the country.
Instructions
Parse and format a phone number into E.164, national, and international formats. Validates the number and identifies the country.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes | Phone number (e.g., "+1 (212) 555-1234") | |
| country_code | No | ISO 3166-1 alpha-2 country code (e.g., "US", "GB", "DE"). Default: "US" |