nid_eg_validate $0.001 per call

Offline validator for an Egyptian National ID (14 digits): parses the century digit (2=1900s, 3=2000s), birth date (YYMMDD), 2-digit governorate code, 4-digit sequence whose last digit encodes gender (odd=male, even=female), and verifies the 14th check digit using the weighted modulus-11 algorithm (weights 2,7,6,5,4,3,2,7,6,5,4,3,2 applied to digits 1-13, mod 11, check = 11 - remainder, with 10/11 mapped to 0). No network access.

For AI agents: call nid_eg_validate
POST https://toll402.dev/v1/t/nid_eg_validate
{
 "id": "29001150112341"
}
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": {
  "id": {
   "type": "string",
   "description": "14-digit Egyptian National ID, digits only or with separators/spaces"
  }
 },
 "required": [
  "id"
 ]
}

MCP

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

All tools · OpenAPI