{"uid":"cap_417moQMvxTS2j8n4oV3t3","slug":"agent402-tools-phone-number-formatter-da5e0495","name":"agent402.tools Phone Number Formatter","description":"Parse and format phone numbers into E.164 and national formats. Supports US (+1), UK (+44), DE (+49), FR (+33), AU (+61), IN (+91). Pure regex — no libphonenumber dependency.","url":"https://agent402.tools/api/phone-format?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"phone":{"type":"string","description":"phone number (any common format)"},"country":{"type":"string","description":"ISO country code hint: US, UK, DE, FR, AU, IN (default US)"}}},"responseSchema":{"type":"json","example":{"e164":"+15552345678","valid":true,"digits":"15552345678","country":"US","national":"(555) 234-5678","original":"+1 (555) 234-5678"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HExoeWZ7BNz-VudZ76Poj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses and formats phone numbers into E.164 and national formats for US, UK, DE, FR, AU, and IN using pure regex.","exampleAgentPrompt":"Can you format the phone number '(415) 867-5309' into both E.164 and national format? It's a US number.","exampleUseCases":null,"resultDescription":"Returns the phone number in E.164 format (e.g. +14158675309) and national format (e.g. (415) 867-5309), parsed using regex-based rules for the specified country.","failureModes":["Unrecognized phone number format returns an error or null result","Unsupported country code falls back to US default or returns an error","Ambiguous number without country hint may be parsed incorrectly","Malformed input string (e.g. letters mixed in) may fail to parse"],"whenToPreferThis":"Use this endpoint when you need lightweight, fast phone number normalization to E.164 or national format for one of the six supported countries (US, UK, DE, FR, AU, IN) and do not want to depend on libphonenumber. Ideal for simple formatting pipelines where regex-based accuracy is sufficient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T06:30:08.822Z","isFirstParty":false,"canonicalSlug":"agent402-tools-phone-number-formatter-da5e0495"}