Use when an agent needs to check, normalize or format a phone number before saving, calling or texting it

$0.002 per call20 free calls/day via MCP

Use when an agent needs to check, normalize or format a phone number before saving, calling or texting it. Parses any format for 240+ countries and returns valid/invalid, E.164, international and national formats, country, calling code and line type (mobile, fixed line, toll-free, VoIP...). Pass "country" (ISO code) for local numbers. Offline rules, under 100 ms.

phonephone-validatione164normalizetelephonecrmlead-generationsms

Call it from an AI agent (MCP)

Add the remote MCP server https://www.aypiai.online/mcp (Streamable HTTP, no auth) to Claude, Cursor, ChatGPT or any MCP client, then call the tool phone_validate:

{
  "name": "phone_validate",
  "arguments": {
    "phone": "(415) 555-2671",
    "country": "US"
  }
}

Call it over HTTP

curl -X POST https://www.aypiai.online/api/phone-validate \
  -H "Content-Type: application/json" \
  -H "X-Access-Key: YOUR_CREDIT_KEY" \
  -d '{"phone":"(415) 555-2671","country":"US"}'

No key? Without one the endpoint answers 402 Payment Required with an x402 PAYMENT-REQUIRED header: any x402 client (USDC on Base, gasless) pays $0.002 and retries automatically. Works with any x402 wallet: Base MCP, Coinbase AgentKit, x402-fetch / x402-axios, Cloudflare Agents. Or buy card credits at /credits (from $5, valid on all tools). Failed calls are never charged.

Input

{
  "type": "object",
  "properties": {
    "phone": {
      "type": "string",
      "description": "Phone number in any format"
    },
    "country": {
      "type": "string",
      "description": "Optional ISO 3166 country code for national-format numbers (e.g. US, FR, IE)"
    }
  },
  "required": [
    "phone"
  ]
}

Example output

{
  "input": "(415) 555-2671",
  "valid": true,
  "e164": "+14155552671",
  "international": "+1 415 555 2671",
  "national": "(415) 555-2671",
  "country": "US",
  "callingCode": "1",
  "type": "FIXED_LINE_OR_MOBILE"
}

Related tools

Use when an agent needs to reach a company ($0.003) · Use when an agent needs a company profile from its website in one call (name, logo, contacts, socials, key pages) ($0.005) · Use when an agent collects, cleans or sends to an email address and needs to know if it can receive mail ($0.002)

Rever: website intelligence for AI agents. MCP server: https://www.aypiai.online/mcp · x402 catalog: /.well-known/x402