{"uid":"cap_Fl_j88poW2wM5hzS3EuOM","slug":"defi-shield-hazel-vercel-app-830dda19","name":"DeFi Shield MEV Risk Analyzer","description":"","url":"https://defi-shield-hazel.vercel.app/api/mev/risk","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","bodyType","body","method"],"properties":{"body":{"properties":{"chain":{"type":"string","description":"Chain (default: base)"},"token_address":{"type":"string","description":"Token address for MEV risk analysis"},"trade_size_usd":{"type":"number","description":"Trade size in USD"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":{"request":{"input":{"body":{"chain":"base","token_address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","trade_size_usd":5000},"type":"http","method":"POST","bodyType":"json"}},"response":{"chain":"base","data_age":"2026-06-16T01:18:32.583Z","cache_ttl":300,"pool_types":["quickswap","aerodrome","alien-base","uniswap","pancakeswap","solidlycom","swapbased","iziswap","balancer","baseswap","sushiswap"],"token_name":"USD Coin","pairs_found":30,"is_new_token":false,"risk_numeric":15,"token_symbol":"USDC","token_address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","mev_risk_score":"LOW","trade_size_usd":5000,"total_liquidity":29568480.420000006,"response_time_ms":49,"recommended_slippage":0.5,"sandwich_probability":0.0006,"trade_to_liquidity_ratio":0.000169,"estimated_price_impact_percent":0.0085}},"exampleRequest":{"chain":"base","token_address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","trade_size_usd":5000},"tags":["x402"],"displayCostAmount":"0.25","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Mh_5yn9gYFGdab5jmApzV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes MEV (Maximal Extractable Value) risk for a token trade, estimating sandwich attack probability and recommending protection strategies","exampleAgentPrompt":"Before I swap 10 ETH for USDC on Uniswap, can you check the MEV risk and tell me the sandwich attack probability and what protection strategies I should use?","exampleUseCases":null,"resultDescription":"Returns an MEV risk assessment including a risk score, the estimated probability of a sandwich attack occurring on the trade, and specific protection strategies (such as using private mempools, slippage settings, or MEV-protected RPC endpoints) to mitigate exposure.","failureModes":["Invalid token address returns 400 error","Unsupported chain or DEX returns error","Trade size not provided causes incomplete risk assessment","Network congestion delays risk computation","Unknown token pair may return low-confidence estimate"],"whenToPreferThis":"Use this endpoint when an AI agent or user is about to execute a DeFi token swap and needs to understand MEV exposure before submitting the transaction. Particularly valuable for large trades or trades on high-activity pools where sandwich attacks are common. Prefer this over generic transaction simulation when MEV-specific risk scoring and sandwich attack probability are the primary concern.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:52:47.203Z","isFirstParty":false}