{"uid":"cap_lqCUOiocNv2_TLgTDtrXF","slug":"agent402-uk-luhn-checksum-validator-efe37a54","name":"Agent402 UK Luhn Checksum Validator","description":"Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.","url":"https://agent402.co.uk/v1/validate/luhn","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"number":{"type":"string","description":"Digits to check"}}},"responseSchema":{"type":"json","example":{"valid":true,"digits":16,"masked":"4111********1111"}},"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":"down","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_kohH-QxXZP_qQ5KcYjQty","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":"Validates a digit string using the Luhn algorithm and returns a masked version of the number in the response.","exampleAgentPrompt":"Can you run a Luhn checksum on the number 4532015112830366 and tell me if it's valid? Make sure the number is masked in the result.","exampleUseCases":[{"title":"Pre-payment card number check","prompt":"Before I submit this order, can you verify that the card number 4111111111111111 passes the Luhn check? I want to catch any typos before the payment goes through."},{"title":"IMEI number validation","prompt":"I need to verify that this IMEI number 490154203237518 is valid — can you run it through the Luhn algorithm and tell me if it checks out?"},{"title":"Card data quality gate in a pipeline","prompt":"We're processing a batch of user-submitted card numbers and I want to pre-screen one: does 5500005555555559 pass Luhn validation? Return the masked version too."}],"resultDescription":"Returns a boolean indicating whether the input digit string passes the Luhn checksum, along with a masked version of the number (e.g., with middle digits obscured) to avoid exposing sensitive data in logs or responses.","failureModes":["Non-digit characters in the input may cause a validation error or unexpected result","Empty string input may return an error or false validity","Extremely long digit strings may be rejected","Network or payment processing errors may return a non-200 status"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call Luhn checksum validation with built-in number masking — especially useful in agent pipelines where you want to avoid logging raw card or sensitive digit strings. Prefer it over rolling your own Luhn logic when you need a reliable hosted validator with a simple POST interface and no API key setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:27:54.013Z","isFirstParty":false}