Check a phone number's validity and format
phoneChecks and formats a phone number with libphonenumber: valid and possible flags, E.164, international and national formats, country, calling code and line type (mobile, fixed line, toll free and so on). Without a + sign, give the country. No network call. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.
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": "phone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Phone number, e.g. +44 20 7946 0958 | |
| country | No | ISO alpha-2 default country when the number has no +, e.g. DE |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| e164 | No | ||
| type | No | ||
| input | No | ||
| valid | No | ||
| source | No | ||
| country | No | ||
| national | No | ||
| possible | No | ||
| checkedAt | No | ||
| callingCode | No | ||
| international | No |