{"uid":"cap_N40UaAErvVNHvii7JHD3O","slug":"agent-result-cost-check-2ee6d7f1","name":"Agent Result Cost Check","description":"Agent Result Cost Check: Agent Result Cost Check checks declared result cost against a call budget from bounded caller-supplied values without an external provider. Call Agent Result Cost 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 Cost Check as versioned deterministic JSON. Price…","url":"https://api.delx.ai/api/v1/x402/agent-result-cost-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cost_usdc":{"type":"string","maxLength":8192,"description":"Cost USDC supplied to Agent Result Cost Check; used only for this bounded calculation and processed in memory without retention."},"maximum_usdc":{"type":"string","maxLength":8192,"description":"Maximum USDC supplied to Agent Result Cost Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"amount_usdc":"0.001","maximum_usdc":"0.002","within_budget":true},"schema":"delx/util-agent-result-cost-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"22cac9b8faf2680905382f84e7f4ba215e19e1473c911e345e9e10defcc59533","external_calls":0},"operation":"delivery_contract:agent_result_cost_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_02jKHYDhshUX4F0aNYiHt","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 whether a declared agent result cost falls within a caller-supplied USDC budget, returning an explicit accept/reject status with mismatch reasons","exampleAgentPrompt":"Before you pay for this agent result, check if the declared cost of 0.05 USDC is within my maximum budget of 0.10 USDC and tell me whether to accept or reject it.","exampleUseCases":[{"title":"Budget gate before x402 payment","prompt":"The agent is claiming its result costs 0.08 USDC — check that against my max budget of 0.05 USDC and tell me if I should accept or reject the charge."},{"title":"Auto-approve low-cost agent tasks","prompt":"Verify that this agent result cost of 0.002 USDC is within my per-task ceiling of 0.01 USDC before I approve the delivery."},{"title":"Catch cost overruns in automated pipeline","prompt":"My pipeline received an agent result declaring a cost of 1.50 USDC but my budget cap is 0.25 USDC — run a cost check and give me the rejection reason so I can log it."}],"resultDescription":"Returns versioned deterministic JSON containing contract-specific validation checks, normalized cost evidence, explicit accept or reject status, and a list of mismatch reasons explaining why the cost was accepted or rejected relative to the stated budget.","failureModes":["Missing or malformed cost_usdc string causes validation to fail with input error","Missing or malformed maximum_usdc string causes budget check to abort","Non-numeric cost or budget strings return a parse error","cost_usdc exceeding maximum_usdc returns rejection with mismatch reason","Payment failure for the $0.001 USDC call fee returns 402 error"],"whenToPreferThis":"Use this endpoint when you need a deterministic, stateless, in-memory cost guard before accepting or paying for an x402 agent result — especially when you cannot trust the caller to self-report accurate costs and need an independent, versioned audit trail of the accept/reject decision with explicit mismatch reasons.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:10:11.363Z","isFirstParty":false}