{"uid":"cap_Hmzb5mv-GCrrpte3HXgeg","slug":"defi-intel-agent-gateway-pre-swap-simulation-414b5cff","name":"DeFi Intel Agent Gateway — Pre-Swap Simulation","description":"Simulate a swap on a public DEX quote API and report price impact, fees and expected output. DO NOT execute the swap. Returns a go/no-go recommendation.","url":"https://defi-intel-agent-gateway.gg-neo15.workers.dev/v1/dex/pre-swap-simulation","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7fyysFaZ-3HqS4qfdcYur","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Simulates a DEX token swap to report price impact, fees, and expected output, returning a go/no-go recommendation without executing the trade.","exampleAgentPrompt":"Before I swap 1000 USDC for ETH on Uniswap, can you simulate that trade and tell me the expected output, price impact, and fees — and whether you'd recommend going ahead with it?","exampleUseCases":[{"title":"Pre-trade slippage check on Uniswap","prompt":"I want to swap 5000 USDC for WBTC on Uniswap — can you simulate that first and tell me the price impact and expected WBTC output, and whether it's a good idea to proceed?"},{"title":"Fee estimation before large DeFi trade","prompt":"Before I swap 50 ETH for USDC on a DEX, simulate the trade for me and break down the fees and expected output so I can decide if it's worth doing right now."},{"title":"Comparing swap viability across amounts","prompt":"Simulate swapping 100 ARB for USDC on Aerodrome and tell me the price impact and whether you'd recommend executing the swap at this size."}],"resultDescription":"Returns a structured JSON response including: estimated output token amount, price impact percentage, protocol and network fees, and an explicit go/no-go recommendation based on the simulated quote — without submitting any on-chain transaction.","failureModes":["DEX API unavailable or rate-limited — returns error with no quote data","Unsupported token pair — returns error indicating pair not found on specified DEX","Insufficient liquidity for the requested swap size — returns high price impact warning or no-go recommendation","Invalid or malformed swap parameters — returns validation error","Network congestion causing stale quote data — may return outdated price impact figures"],"whenToPreferThis":"Use this endpoint when you need a safe, read-only pre-trade analysis before committing to a DEX swap — especially for large trades where price impact and fees materially affect profitability. Prefer this over live execution endpoints when the goal is to evaluate feasibility, compare trade sizes, or surface a human-readable go/no-go recommendation without any on-chain risk. Best used immediately before a potential swap decision, not for historical analysis or portfolio-wide batch simulations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:41:56.810Z","isFirstParty":false}