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
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": {
"phone": "<phone>"
},
"name": "enrich_phone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes | ||
| country_hint | No | US |