{"uid":"cap_sOMZvUVvA_cuI0txKFz2j","slug":"luhn-algorithm-string-validator-5454200b","name":"Luhn Algorithm String Validator","description":"Call when an agent needs whether the digits in a string pass Luhn. Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/check-luhn first.","url":"https://agentshelf.syntexa.ch/v1/check-luhn?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"description":"JSON value for schema-check SKUs. Omit it on string checks such as email or IBAN."},"value":{"type":"string","examples":["123"],"maxLength":20000,"minLength":1,"description":"Value to check. The route description names the format: email, phone, IBAN, postal code, VAT, national id, or similar."},"schema":{"description":"JSON Schema document for schema-check SKUs. Omit it on string checks."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8AtOLesj5qmVzC-yIBBVN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates whether the digits in a given string pass the Luhn checksum algorithm","exampleAgentPrompt":"Can you check whether the number 4532015112830366 passes the Luhn algorithm?","exampleUseCases":[{"title":"Credit card number validation","prompt":"Before I submit this payment form, can you verify that the card number 4111111111111111 passes the Luhn checksum?"},{"title":"IMEI number integrity check","prompt":"I have an IMEI number 490154203237518 — does it pass the Luhn check to confirm it's a valid format?"},{"title":"Generated card number QA","prompt":"I just generated a test card number 5500005555555559 for our sandbox — can you confirm it passes Luhn validation before we use it in testing?"}],"resultDescription":"A boolean or pass/fail result indicating whether the digits in the provided string satisfy the Luhn algorithm checksum. The response confirms if the number is structurally valid per the Luhn mod-10 computation.","failureModes":["Empty string input returns an error (minLength:1 enforced)","String exceeding 20000 characters rejected (maxLength enforced)","Non-numeric or malformed strings may return invalid/false rather than an error","Payment failure (402) if USDC funds are insufficient","Network timeout or service unavailability returns 5xx error"],"whenToPreferThis":"Use this endpoint when you need a quick, paid, reliable Luhn checksum validation for any digit string — especially in production workflows where you need confidence in the result. The description recommends trying an unpaid POST /v1/sandbox/check-luhn first for testing. Prefer this over manual computation when you want a hosted, API-driven validation step in an automated pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:46:16.659Z","isFirstParty":false,"canonicalSlug":"luhn-algorithm-string-validator-5454200b"}