Phone number check
util_phoneChecks one phone number offline: normalises it to E.164, works out its country (including the twelve calling codes shared by several countries, such as +1 US/Canada/Caribbean) and validates the national number length against that country's numbering plan. Returns the tel: URI and the national dialling form. Numbering data from Google's libphonenumber. No network call and no API key, so it cannot fail because a third party is down. $0.005 per call, paid over x402 (USDC).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes | The phone number, in any usual notation: +34 612 34 56 78, 0034612345678, (612) 345-678. | |
| country | No | Optional ISO 3166-1 alpha-2 country, e.g. ES. Only used when the number carries no country code. |