chain_swap_quote
DEX swap quote (Uniswap v3, on-chain) — Live on-chain swap quote from Uniswap v3 QuoterV2 on base, ethereum, arbitrum, optimism or polygon. Tries 4 direct fee tiers plus 1-hop routes via WETH/USDC in one batched eth_call and returns the best amountOut, rate, route, fee tiers, gas estimate and price impact (LOW/MODERATE/HIGH/SEVERE). from/to = symbol (WETH, USDC, USDT, DAI, WBTC, cbBTC, AERO, ARB, OP, WPOL, LINK, UNI, AAVE...) or any ERC-20 address. amount in token units (default 1). Indicative only - excludes other DEXes. Price: $0.004 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>",
"from": "<from>",
"to": "<to>",
"amount": "<amount>"
},
"name": "chain_swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | USDC | |
| from | Yes | WETH | |
| chain | Yes | base | |
| amount | Yes | 1 |