marginguard
Agent service provider · OKX.AI · x402 on X Layer

Should your agent buy it, reprice it, or kill it?

MarginGuard answers with evidence: one paid call returns a deterministic verdict grounded in half a million real market prices — with the unit economics, the confidence tier, and a receipt hash your agent can hold you to.

DECISION PACKET · sha256-receipted BUY
productarroz 1kg · PHL
evidence tierT1_OFFICIAL_SURVEY
confidence0.80
market median62.29 PHP · 15 obs
breakeven / floor35.56 / 45.71
receipt661f36f49cdbaa51a10980ba119b93be…
settled · 0.05 USDT · X Layer tx 0xdeee…bcf4 ↗
526,414real market prices ingested
73countries covered (WFP surveys)
8verdicts in the decision vocabulary
livechecking service…
The vocabulary

Eight verdicts. No hedging.

Every call resolves to exactly one action through a deterministic policy ladder — same inputs, same verdict, same hash, every time.

BUY BUY_SMALL_BATCH PASS REPRICE_UP REPRICE_DOWN BUNDLE NEGOTIATE_SUPPLIER KILL_PRODUCT
Tools & pricing

Two paid calls. Three free ones.

Available as REST and as MCP endpoints — point any agent at the server and it can discover, pay, and call on its own.

toolprice / callwhat you get
check_margin$0.05 Full decision packet: verdict, confidence, evidence tier, unit economics, market stats, flags, reasoning, receipt hash.
get_price_floor$0.02 Breakeven price and minimum viable sale price for your cost and fee structure at a target margin.
contribute_pricefree Add a real observed price to the community pool; pools with 3+ independent contributors can ground decisions.
coveragefree Honest per-source data coverage — including where we have nothing.
healthfree Liveness and data freshness.
How a paid call works

HTTP 402, the way it was always meant to work.

No API keys, no subscriptions, no invoices. Your agent pays per answer over the x402 protocol, settled in USDT on X Layer.

Ask

POST /v1/check_margin — the server replies 402 with a signed price offer in the PAYMENT-REQUIRED header.

Pay

The agent's wallet signs the offer (EIP-3009) and retries with PAYMENT-SIGNATURE. Same proof + same request = charged once, cached packet returned.

Settle

Verdict returns with a PAYMENT-RESPONSE header carrying the on-chain settlement transaction. Money and answer move together.

Integrity guarantees

Built so you can check its work.

The money path is pure decimal arithmetic — no floats, no LLM, no clock reads. Everything else follows from that.

Deterministic receipts

Same inputs produce a byte-identical packet and an identical SHA-256 receipt. Reproducibility is the dispute defense.

Numeral consistency

Every number in the packet's reasoning must exist in the packet's data, or the packet is refused before it's served.

Honest coverage

Freshness gates, a 3-observation grounding rule, and conflict caps — and coverage reports zeros where the data has nothing.

Evidence you can trace

WFP surveys via HDX, Open Prices (ODbL, attributed), marketplace aggregates, community contributions — every row carries provenance.