{"uid":"cap_RgQVu_gi7HjtYsLbns6Eh","slug":"capi2-momentum-foundry-change-risk-score-e07650a4","name":"CAPI2 Momentum Foundry – Change Risk Score","description":"Paid agent utilities delivered after verified x402 settlement.","url":"https://capi2-foundry.vandurmedries.workers.dev/v1/products/change-risk-score/run?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after":{"type":"object","description":"New JSON object"},"before":{"type":"object","description":"Prior JSON object"}}},"responseSchema":{"type":"json","example":{"result":{},"createdAt":"2026-09-23T00:00:00.000Z","productId":"change-risk-score","deliveryReceipt":{"payer":"0x0000000000000000000000000000000000000000","productId":"change-risk-score","receiptId":"00000000-0000-4000-8000-000000000000","deliveredAt":"2026-09-23T00:00:00.000Z","inputSha256":"example-input-sha256","amountAtomic":"12000","resultSha256":"example-result-sha256","signatureSha256":"example-signature-sha256"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.012","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.012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.012","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eaq9l9Ke9iGztHU0e5gWY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.012","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a risk score differential by comparing a 'before' JSON object to an 'after' JSON object, quantifying how much risk has changed between two states.","exampleAgentPrompt":"Compare these two JSON snapshots of a user profile — the 'before' version had credit_score 720 and no flags, the 'after' version has credit_score 580 and two fraud flags — and give me a change risk score so I can decide whether to block this transaction.","exampleUseCases":[{"title":"Fraud detection on account updates","prompt":"A user just changed their shipping address and phone number simultaneously. Here's the account record before and after the update — can you run a change risk score on these two JSON objects so I know whether to flag this for manual review?"},{"title":"Configuration change safety check","prompt":"Before we deploy this infrastructure config update, compare the before and after JSON and give me a risk score for the change — I want to know if we're introducing something dangerous."},{"title":"Loan application state risk delta","prompt":"A loan applicant just re-submitted with updated income and employment fields. Take the original application JSON and the revised one and calculate the change risk score so we can decide whether to re-run full underwriting."}],"resultDescription":"Returns a JSON object containing a 'result' field with the computed change risk score, a 'createdAt' ISO timestamp, the 'productId' confirming which product ran, and a 'deliveryReceipt' object that includes the payer address, a unique receiptId, delivery timestamp, SHA-256 hashes of the input and result, an atomic USDC amount charged (12000 atomic units = $0.012), and a signature hash for verification.","failureModes":["Missing or malformed 'before'/'after' fields returns a 4xx validation error","Payment settlement failure via x402 blocks execution and returns 402 Payment Required","Network timeout on the Cloudflare Worker returns 5xx","Empty or non-object values for before/after may produce an empty or zero result","Invalid JSON in request body returns parse error"],"whenToPreferThis":"Choose this endpoint when you need a structured, paid, cryptographically receipted risk score comparing two discrete JSON states — particularly in compliance, fraud detection, or configuration safety workflows where auditability (via delivery receipt and SHA-256 hashes) matters. Prefer over custom diffing logic when you want a single scored output rather than a raw diff.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:35:08.067Z","isFirstParty":false,"canonicalSlug":"capi2-momentum-foundry-change-risk-score-e07650a4"}