{"uid":"cap_IcZPTT5bTintA3-_smRez","slug":"mev-sandwich-guard-2490f8da","name":"MEV / Sandwich Guard","description":"Agents are the easiest MEV prey: predictable, public-mempool, a measured ~$50M/quarter tax. A sandwich only pays when a trade moves the pool enough to front-run (size vs pool depth). This returns an exposure read (low/elevated/high) and a protected-execution plan: a tight min-out, private/off-mempool inclusion (a Cobalt validity tx via validity-build), and splitting a large order into unattackable chunks. Pass tokenOut + amountUsd. Not financial advice.","url":"https://402.com.tr/api/x402/mev-guard?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["tokenOut"],"properties":{"tokenOut":{"type":"string","description":"Token you want to buy"},"amountUsd":{"type":"string","description":"Trade size in USD"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_L0SMvjRQcsAyP9G-x_Xkv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Assesses MEV sandwich attack exposure for a token trade and returns an exposure level plus a protected execution plan with optimal slippage, private mempool routing, and order splitting.","exampleAgentPrompt":"Check the MEV sandwich attack risk for buying $5000 worth of ETH — give me an exposure rating and a protected execution plan with safe slippage and private mempool routing.","exampleUseCases":[{"title":"Pre-swap MEV risk check for large trade","prompt":"Before I swap $20,000 into WBTC, can you check how exposed that trade is to sandwich attacks and give me a protected execution plan with the right min-out and any order splitting I should do?"},{"title":"Automated agent trade protection","prompt":"My trading agent is about to buy $3,500 of OP token — can you run a sandwich guard check first and tell me if it should use private mempool routing or split the order?"},{"title":"Small trade safety assessment","prompt":"Is a $200 swap into LINK likely to get sandwiched, or is the pool deep enough that I don't need to worry about MEV protection?"}],"resultDescription":"Returns an MEV exposure rating (low, elevated, or high), a recommended minimum output (min-out) to set as slippage protection, instructions for private/off-mempool transaction inclusion via a Cobalt validity transaction, and a suggested order-splitting strategy to break large trades into MEV-resistant chunks.","failureModes":["Missing required tokenOut parameter returns a validation error","Invalid or unrecognized token symbol may return an error or fallback exposure estimate","Very illiquid or newly created tokens may lack sufficient pool depth data for accurate assessment","Network or pricing data unavailability may cause timeout or degraded response","Payment failure (insufficient USDC) returns 402 Payment Required before processing"],"whenToPreferThis":"Choose this endpoint when an AI agent is about to execute or recommend a token swap and needs to assess and mitigate MEV sandwich risk before placing the trade — especially for large trades relative to pool depth, trades on public mempools, or when the agent needs a concrete protected execution plan rather than generic slippage advice. Prefer this over generic DEX aggregator slippage tools when you need explicit exposure classification and private mempool routing instructions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:39:17.835Z","isFirstParty":false,"canonicalSlug":"mev-sandwich-guard-2490f8da"}