Phone number
validate_phone_numberValidate and format a phone number. A valid number also has e164, national, international, country, type and, from libphonenumber's numbering-plan data in English: carrier, the operator the number range was first allocated to (numbering-plan data, not a live HLR lookup: a ported number may now be with another operator; null for landlines and where unknown); timezones, IANA zone ids ([] when unknown; a number with no geographic tie, such as most mobiles, gets its country's zones); location, the area of a geographic number (a city or region, e.g. "San Francisco, CA"), else the country, null when unknown. An invalid number has only valid and possible; one that does not parse, valid and reason. Works without a key within a daily free quota.
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": {
"number": "<number>"
},
"name": "validate_phone_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | E.164 with a leading +, or national with country; in a URL query send the + as %2B | |
| country | No | Default region for numbers without a + prefix |