{"uid":"cap_p-Xf5cJm1lBIgguJcOm8T","slug":"flow-best-execution-swap-quotes-for-ai-agents-54ba4a73","name":"Flow — Best-Execution Swap Quotes for AI Agents","description":"Use when an agent is about to approve, buy, or first interact with an unfamiliar Base token or contract and needs a safety verdict before risking funds. Flow contract safety verification: send a token or contract address on Base and get a verdict (safe|caution|danger), a 0-100 safety score, the red flags found, and plain-English agent advice (APPROVE / REVIEW_MANUALLY / DO_NOT_APPROVE).","url":"https://flow-kg4x.vercel.app/api/verify?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"score":100,"verdict":"safe","agentAdvice":"APPROVE"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FZagWs6KLxU0vBeGZx_oY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns best-execution crypto swap quotes on Base by comparing Uniswap V3 and Aerodrome, then providing a safety verdict and approval recommendation.","exampleAgentPrompt":"Before I commit to this swap, check both Uniswap V3 and Aerodrome on Base and tell me which gives the best price for swapping 1000 USDC to ETH — and whether it's safe to approve.","exampleUseCases":[{"title":"Pre-swap best-execution check","prompt":"I'm about to swap 500 USDC for WETH on Base — can you compare Uniswap V3 and Aerodrome prices and tell me which is cheaper and if it's safe to go ahead?"},{"title":"DeFi trading bot route optimization","prompt":"My trading bot needs the best route to swap 10,000 DAI to USDC on Base right now — get me a quote comparing Uniswap V3 and Aerodrome and give me an approve or reject verdict."},{"title":"Safe swap verification before execution","prompt":"Before my agent executes this ETH-to-USDC swap on Base, run it through your best-execution checker and tell me the safety score and whether I should approve it."}],"resultDescription":"Returns a JSON object with a numeric score (0–100), a safety verdict (e.g. 'safe'), and an agentAdvice field (e.g. 'APPROVE') summarizing whether the swap should be executed based on best-execution analysis across Uniswap V3 and Aerodrome.","failureModes":["Invalid or malformed swap parameters in the request body return an error","Unsupported token pair not available on either DEX results in a failed quote","Network latency or DEX API downtime may cause timeouts beyond the ~600ms window","Missing or incorrect x402 payment header results in 402 Payment Required","Low liquidity for the requested pair may produce unreliable or missing quotes"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to make a best-execution decision for a token swap on Base before committing funds, especially when comparing Uniswap V3 and Aerodrome simultaneously. Prefer it over calling DEX APIs directly when you want a pre-packaged safety verdict and approval recommendation rather than raw price data. Ideal for autonomous trading agents that need fast (~600ms), structured go/no-go signals without managing DEX integrations themselves.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T06:32:58.096Z","isFirstParty":false,"canonicalSlug":"flow-best-execution-swap-quotes-for-ai-agents-af10e900"}