{"uid":"cap_C61PS01jHSU5CLANRUK23","slug":"capi2-agent-commerce-action-guard-79bed94a","name":"CAPI2 Agent Commerce – Action Guard","description":"Programmable authority checks and tamper-evident receipts for autonomous agents, sold through sustainable x402 commerce.","url":"https://capi2-agent-commerce.vandurmedries.workers.dev/v1/action-guard","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"authority":{"type":"object"},"proposed_action":{"type":"object"}}},"responseSchema":{"type":"json","example":{"decision":"block","findings":[{"code":"price_mismatch"}],"risk_score":100}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CfRSBJRoVA0GJzlEUWX7R","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs programmable authority checks on proposed autonomous agent actions and returns tamper-evident, risk-scored decisions with detailed findings.","exampleAgentPrompt":"Before my agent executes this purchase action, run an authority check on it — pass the authority object and the proposed action, and tell me the decision, any findings like price_mismatch, and the risk score so I know whether to proceed.","exampleUseCases":[{"title":"Pre-execution safety gate for agent fleet","prompt":"Before my agent submits that marketplace order, run an authority check — here's the authority config and the proposed buy action — and block it if the risk score is high or there's a price mismatch finding."},{"title":"Audit trail for autonomous financial actions","prompt":"My agent is about to transfer funds autonomously — validate the proposed transfer action against the authority object and give me a tamper-evident decision receipt I can log."},{"title":"Policy enforcement in multi-agent pipeline","prompt":"One of the agents in my pipeline wants to call an external API — check its authority object and the proposed API-call action, then tell me whether to allow or block it and what findings triggered the decision."}],"resultDescription":"A JSON object containing a 'decision' field ('allow' or 'block'), a 'findings' array of objects each with a 'code' indicating the specific policy violation (e.g. 'price_mismatch'), and a 'risk_score' integer (0–100) reflecting the overall danger level of the proposed action.","failureModes":["Malformed authority or proposed_action objects may result in validation errors or unexpected block decisions","High risk scores may be returned for actions that are actually legitimate if authority rules are misconfigured","x402 payment failure at $0.02 USDC will prevent the check from executing","Ambiguous or incomplete action schemas may lead to inconclusive findings","Service availability depends on Cloudflare Workers uptime"],"whenToPreferThis":"Choose this endpoint when you need a programmatic, per-action authorization gate for autonomous agents — especially when you require tamper-evident decision receipts and structured risk scores rather than a simple boolean allow/deny. It is particularly suited for agentic pipelines where agents are performing financial or high-stakes actions and you want fine-grained findings (e.g. price_mismatch codes) rather than coarse policy enforcement.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:30:25.474Z","isFirstParty":false}