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

The true price of any deal your agent makes — or the overcharge.

Buy it, convert it, or send it across a border: MarginGuard returns a deterministic verdict grounded in half a million market prices, live FX provider quotes, and official country-direction benchmarks — with the 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

Thirteen verdicts across three price surfaces. No hedging.

Every call resolves to exactly one action through a deterministic policy ladder — same inputs, same verdict, same hash, every time. Commodity resale, currency conversion, cross-border transfer: one question, "am I being overcharged?"

BUY BUY_SMALL_BATCH PASS REPRICE_UP REPRICE_DOWN BUNDLE NEGOTIATE_SUPPLIER KILL_PRODUCT
FAIR MARKET_RATE BEST_ROUTE OVERCHARGED GOUGED
Tools & pricing

Four 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 resale decision packet: verdict, confidence, evidence tier, unit economics, market stats, flags, reasoning, receipt hash.
check_fx_cost$0.02 True cost of a currency conversion vs the mid-market rate and live provider quotes — the markup hidden in the exchange rate, plus the cheapest route.
check_transfer_cost$0.03 Cross-border transfer cost vs live providers and official World Bank source-outbound and destination-inbound context — with the stablecoin-rail alternative.
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.