validate_phone
Validate and format a phone number. Uses Google's libphonenumber rules. Returns validity, country, the E.164, national and international formats, and the line type (mobile, fixed line and others). It does not call the number. Nothing is stored.
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": "validate_phone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes | A phone number, with + and country code or a national number, for example +14155552671. | |
| defaultCountry | No | Two-letter ISO 3166 country code used when the number has no + prefix, for example US. |