Normalize phone number (E.164)
normalize_phoneUse this when you need a phone number in E.164 format with its country and line type (MOBILE, FIXED_LINE, FIXED_LINE_OR_MOBILE, TOLL_FREE, VOIP, ...) before storing, deduplicating or dialing it. Works for every country with a calling code, offline, using Google libphonenumber metadata via libphonenumber-js. Give defaultCountry for numbers written without an international prefix. Invalid numbers are a valid (charged) answer with a reason code; it does not check whether the line is in service.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "normalize_phone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Batch mode: up to 500 items, each with the same fields as a single call. Omit when validating a single value through the top-level fields. | |
| phone | No | Phone number as written, e.g. "+52 55 1234 5678", "(415) 555-2671", "0049 30 901820". International prefix optional when defaultCountry is given. | |
| defaultCountry | No | ISO 3166-1 alpha-2 country assumed when the number has no + prefix, e.g. "MX", "US", "ES". |