phone_e164_normalize $0.001 per call

Offline normalizer/validator for phone numbers to E.164 format. Detects country from a leading '+' calling code or an optional defaultCountry (ISO2) hint, and checks the national number length against a basic rules table for LatAm, US/CA, EU (ES,PT,FR,DE,IT,GB). No network calls; approximate validation only (length-based, not full carrier rules).

For AI agents: call phone_e164_normalize
POST https://toll402.dev/v1/t/phone_e164_normalize
{
 "phone": "+5511987654321"
}
Answers 402 with x402 payment requirements; pay with any x402 client (@x402/fetch, x402 for Python, toll402-client, toll402-mcp) or send a prepaid-credits key as x-toll402-key (https://toll402.dev/credits). Paid per call via x402 (USDC on Base) or with a prepaid-credits key (x-toll402-key, card at /credits); charged only on success. Start at /llms.txt or connect the MCP server: npx -y toll402-mcp · remote https://toll402.dev/mcp.

Input schema

{
 "type": "object",
 "properties": {
  "phone": {
   "type": "string",
   "description": "Phone number, digits with optional +, spaces, dashes, parentheses"
  },
  "defaultCountry": {
   "type": "string",
   "description": "ISO2 country code to assume if phone has no country code, e.g. US, BR, MX"
  }
 },
 "required": [
  "phone"
 ],
 "additionalProperties": false
}

MCP

{"mcpServers":{"toll402":{"command":"npx","args":["-y","toll402-mcp"],"env":{"TOLL402_WALLET_KEY":"0x..."}}}}

All tools · OpenAPI