{"endpoint":"/api/mev/price-impact","method":"POST","service_trust":"https://defi-shield-hazel.vercel.app/api/trust-signal","free_check":{"endpoint":"https://defi-shield-hazel.vercel.app/api/free/token-check","method":"POST","price":"FREE","note":"Try before you buy — free basic token safety check with risk math."},"also_available_on":{"virtuals_acp":{"agent":"Authensor","agent_id":18805,"offerings":["pre_trade_safety","token_deep_scan","wallet_report","batch_seal"],"marketplace":"https://app.virtuals.io/acp/scan/agents","note":"Same service, accessible to 18,000+ autonomous agents on Virtuals Protocol."},"mcp_server":{"package":"devsecure-mcp","install":"npx devsecure-mcp","tools":67,"note":"Install as MCP server in Claude, Cursor, or any MCP-compatible client for direct tool access."},"bazaar":"https://defi-shield-hazel.vercel.app/.well-known/x402","agent_card":"https://defi-shield-hazel.vercel.app/.well-known/agent-card.json"},"powered_by":"DeFi Shield by Authensor","price":"$0.10","description":"Calculate price impact for a buy or sell using the constant product formula against the highest-liquidity DEX pair. Returns effective price after impact.","llm_usage_prompt":"Call this endpoint BEFORE executing any swap to calculate price impact. Provide token_address, amount_usd, and direction ('buy' or 'sell'). Uses constant product formula (impact% = amount / (2 * liquidity) * 100) against the highest-liquidity pool. Returns price_impact_percent, effective_price after impact, current_price, pool_used details, and pool_liquidity. Use this to set slippage tolerance. Costs $0.10.","params":{"token_address":"string (required) - Contract address of the token","amount_usd":"number (required) - Trade size in USD","direction":"string (optional) - 'buy' or 'sell' (default: buy)"},"exampleRequest":{"token_address":"0x6982508145454Ce325dDbE47a25d4ec3d2311933","amount_usd":10000,"direction":"buy"},"exampleResponse":{"token_address":"0x6982508145454Ce325dDbE47a25d4ec3d2311933","direction":"buy","amount_usd":10000,"price_impact_percent":0.04,"effective_price":0.00001235,"current_price":0.00001234,"pool_used":{"pair_address":"0xabc...","dex":"uniswap","base_token":"PEPE","quote_token":"WETH"},"pool_liquidity":12500000,"formula":"impact% = amount_usd / (2 * pool_liquidity_usd) * 100"}}