{"uid":"cap_Xyx_n2myoNwm5uA3BV4zg","slug":"agent-result-budget-check-fbabf60c","name":"Agent Result Budget Check","description":"Agent Result Budget Check: Agent Result Budget Check checks cumulative caller-supplied spend against daily and per-call budgets from bounded caller-supplied values without an external provider. Call Agent Result Budget Check before paying for or accepting an x402 or agent delivery assembled from caller-supplied challenge and result metadata. Returns contract-specific checks, normalized evidence, mismatch reasons, and an explicit acceptance or rejection status for Agent Result Budget Check as ve…","url":"https://api.delx.ai/api/v1/x402/agent-result-budget-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"call_usdc":{"type":"string","maxLength":8192,"description":"Call USDC supplied to Agent Result Budget Check; used only for this bounded calculation and processed in memory without retention."},"maximum_day_usdc":{"type":"string","maxLength":8192,"description":"Maximum Day USDC supplied to Agent Result Budget Check; used only for this bounded calculation and processed in memory without retention."},"spent_today_usdc":{"type":"string","maxLength":8192,"description":"Spent Today USDC supplied to Agent Result Budget Check; used only for this bounded calculation and processed in memory without retention."},"maximum_call_usdc":{"type":"string","maxLength":8192,"description":"Maximum Call USDC supplied to Agent Result Budget Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"call_usdc":"0.001","within_day_budget":true,"projected_day_usdc":"0.021","within_call_budget":true},"schema":"delx/util-agent-result-budget-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"8ad48af0de0158cceae3022914dbbf4f16ced4ca1f4253475e7371a33188c62b","external_calls":0},"operation":"delivery_contract:agent_result_budget_check"}},"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":"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_owG2HuqBOPv0NhrhCZQYE","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 cumulative and per-call USDC spend against configured daily and per-call budget limits before accepting an x402 agent payment or delivery","exampleAgentPrompt":"Before you pay for this agent result, check whether the call costs 0.05 USDC, I've already spent 1.20 USDC today, my daily maximum is 2.00 USDC, and my per-call maximum is 0.10 USDC — does this payment pass the budget check?","exampleUseCases":[{"title":"Autonomous agent pre-payment guard","prompt":"Before this x402 agent result gets paid out, run a budget check: the call is 0.03 USDC, I've spent 0.85 USDC today, my daily cap is 1.00 USDC, and my per-call limit is 0.05 USDC. Tell me if it should be accepted or rejected."},{"title":"Daily spend cap enforcement for fleet","prompt":"My agent fleet has a daily USDC budget of 5.00 and a per-call cap of 0.25. Before authorizing this 0.20 USDC call where we've already spent 4.90 USDC today, check if this payment should go through."},{"title":"Real-time overspend detection before x402 accept","prompt":"I need to verify a pending x402 payment: the call costs 0.15 USDC, my per-call max is 0.10 USDC, I've spent 0.50 USDC today, and my daily max is 2.00 USDC. Is this within budget or should I reject it?"}],"resultDescription":"Returns an explicit acceptance or rejection status for the payment, along with contract-specific budget checks, normalized evidence of the submitted values, and a list of mismatch reasons explaining any budget violations — all computed in-memory from the caller-supplied USDC values without any external calls or data retention.","failureModes":["Non-numeric or malformed USDC string values may cause parse errors or unexpected comparison behavior","Missing required fields (call_usdc, maximum_call_usdc, etc.) may result in incomplete validation","Caller-supplied values that are extremely large strings (up to 8192 chars) could cause precision edge cases","No external oracle is used, so the check is only as valid as the caller-supplied inputs — garbage in, garbage out"],"whenToPreferThis":"Use this endpoint when you need a lightweight, stateless, in-memory budget validation step before committing to an x402 payment or accepting an agent delivery. It is ideal for autonomous agent pipelines where you want to enforce per-call and daily USDC spend caps without maintaining server-side state. Prefer this over manual arithmetic checks when you need structured rejection reasons and normalized evidence for auditability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:05:40.009Z","isFirstParty":false}