{"uid":"cap_tU3UaZuqKgpvF8ORJ1tiQ","slug":"finmath-luhn-check-9241ad94","name":"finmath Luhn Check","description":"Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.","url":"https://finmath.qzqh5rrbkz.workers.dev/v1/luhn_check","method":"POST","headers":{},"bodySchema":{"type":"object","required":["number"],"properties":{"number":{"type":"number","description":"number"}}},"responseSchema":{"type":"object","required":["result","meta"],"properties":{"meta":{"type":"object"},"result":{}}},"example":{"request":{"number":4532015112830366},"response":{"meta":{"tool":"luhn_check","disclaimer":"Deterministic calculation utility. Not financial, investment, or trading advice.","deterministic":true},"result":{"valid":true,"digits":16}}},"exampleRequest":{"number":4532015112830366},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_Cc5CkU-OzzAphsBPM7L2i","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 number using the Luhn algorithm (checksum verification for credit card and ID numbers)","exampleAgentPrompt":"Can you run a Luhn check on the number 4532015112830366 and tell me if it's a valid number?","exampleUseCases":null,"resultDescription":"Returns a result field indicating whether the number passes the Luhn checksum, plus a meta object with additional context about the computation.","failureModes":["Missing required 'number' field returns validation error","Non-numeric input may cause a parse error","Payment failure (402) if USDC balance is insufficient","Network timeout from Cloudflare Workers edge"],"whenToPreferThis":"Use this endpoint when you need deterministic, exact Luhn checksum validation for credit card numbers, IMEI numbers, or any identifier using the mod-10 algorithm — especially when LLM arithmetic cannot be trusted for precise digit-by-digit computation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:57:15.775Z","isFirstParty":false}