{"uid":"cap_6QcpHULSSuq9jFvMt79V8","slug":"agent-bounties-margin-verifier-22315b71","name":"Agent Bounties Margin Verifier","description":"Deterministic calculator that takes an Agent Bounties task specification and returns a verified breakdown of solver reward, required external spend, bond, and net cash margin in base units. Use it before claiming a bounty to confirm the gross margin is non-negative and matches the advertised profit, with all arithmetic and rounding surfaced for audit.","url":"https://openworker.etips.me/api/services/bounty_margin_verify?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["solver_reward_base_units","required_external_spend_base_units"],"properties":{"decimals":{"type":"integer","default":6,"maximum":18,"minimum":0,"description":"Token decimals used to interpret base units."},"claim_bond_base_units":{"type":"integer","minimum":0,"description":"Refundable bond posted to claim the task, in base units. Defaults to 0."},"solver_reward_base_units":{"type":"integer","minimum":0,"description":"Reward paid to the solver in base units (6 decimals for USDC)."},"advertised_profit_base_units":{"type":"integer","minimum":0,"description":"Profit advertised by the task, in base units, to cross-check against computed net."},"required_external_spend_base_units":{"type":"integer","minimum":0,"description":"Mandatory spend required to complete the task, in base units."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jay8BlXT-RcV9LMA_XGFt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates and audits the net cash margin for an Agent Bounties task by breaking down solver reward, external spend, bond, and profit in base units with full arithmetic transparency.","exampleAgentPrompt":"Before I claim this bounty, verify the margin for me: the solver reward is 5000000 base units, required external spend is 2000000 base units, the claim bond is 500000 base units, and the advertised profit is 2500000 base units — all in 6-decimal USDC. Is the gross margin non-negative and does it match the advertised profit?","exampleUseCases":[{"title":"Pre-claim profitability check","prompt":"I'm about to claim a bounty that advertises 3 USDC profit. The solver reward is 8000000 base units, required external spend is 4500000, and the bond is 1000000. Can you verify the net cash margin is non-negative and matches that advertised profit of 3000000 base units?"},{"title":"Discrepancy audit on bounty listing","prompt":"Something looks off with this bounty listing. The advertised profit is 2000000 base units but my back-of-envelope says it should be less. Solver reward is 6000000, external spend is 3500000, bond is 0. Can you run a full arithmetic audit and show me the breakdown?"},{"title":"Zero-margin safety gate before claiming","prompt":"Before my agent claims this task, I need to confirm it won't lose money. Solver reward is 1500000 base units, external spend is 1500000, bond is 200000 base units, and the listed profit is 0. Verify the margin and surface all the rounding details."}],"resultDescription":"Returns a verified breakdown of the bounty financials including: computed net cash margin in base units, solver reward, required external spend, bond amount, whether the margin is non-negative, whether the computed net matches the advertised profit, and full arithmetic/rounding details for audit purposes.","failureModes":["Missing required fields (solver_reward_base_units or required_external_spend_base_units) returns a validation error","Negative margin detected — returned as a flag indicating the bounty is unprofitable","Mismatch between computed net and advertised profit surfaced as a discrepancy in the response","Invalid decimals value (outside 0–18) causes schema validation failure","Non-integer base unit values rejected by schema validation","API pricing layer ($0.01 USDC) not satisfied causes payment-required error (x402)"],"whenToPreferThis":"Use this endpoint when an AI agent is about to claim an Agent Bounties task and needs to confirm profitability with auditable arithmetic — especially when the advertised profit needs cross-checking against actual spend and bond requirements. Prefer this over manual calculation when you need rounding details and a verified margin sign surfaced explicitly. Best suited for pre-claim guard logic in agentic bounty-hunting workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T00:34:52.379Z","isFirstParty":false,"canonicalSlug":"agent-bounties-margin-verifier-22315b71"}