parse_phone_number
Extract country code and national number from international phone numbers and validate their formatting. Supports major country codes.
Instructions
Parse and validate international phone numbers.
Use this to extract country code, national number, and
validate formatting. Supports major country codes.
Parameters:
phone — Phone number string (e.g. '+441234567890').
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": "parse_phone_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |