x420_validate_email-url-phone
Validates and normalizes email addresses, URLs, and phone numbers offline without network lookups, returning corrected values, domain or host details, and E.164 phone formatting.
Instructions
Format validator (email, URL, phone): Syntax validation and normalisation: email (RFC 5322 simplified, lower-cased domain), URL (parsed, http/https), phone (E.164 normalisation with NANP rules). No network lookups. Not professional, legal, insurance, engineering, medical, financial or tax advice. PAID: $0.01 USDC per call, settled on Base via x402 from the wallet in X420_MCP_WALLET_PRIVATE_KEY (real money). Returns: JSON: email{valid, normalized, domain}, url{valid, normalized, host}, phone{valid, e164, country_code, national} - the deliverable plus X420's signed receipt and the settlement transaction. Example input: {"email":"Owner@Example.COM","phone":"(817) 555-0142"}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "x420_validate_email-url-phone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to check (default: none) | |
| No | email address to check (default: none) | ||
| phone | No | phone number to normalise (default: none) | |
| default_country | No | ISO 3166 alpha-2 for phones without a + prefix (default US) |