Token swap / bridge quote (non-custodial)
swap_quoteGet a best-price token swap quote on one EVM chain (KyberSwap aggregator) or a cross-chain bridge quote (LI.FI, fallback Relay; set toChain). Returns expected and minimum output, price impact, gas, every fee, safety warnings and, if you pass taker, an UNSIGNED transaction (plus exact-amount ERC-20 approval) for your own wallet to sign. Quotes are free and unlimited. Fee disclosure: same-chain swaps include a 0.25% MoneyTools fee taken from the input on-chain only if you execute; cross-chain currently 0% MoneyTools fee. Never signs, holds funds or asks for keys.
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>",
"fromToken": "<fromToken>",
"toToken": "<toToken>"
},
"name": "swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | source chain: ethereum, base, arbitrum, optimism, polygon, bsc, avalanche (or chain id) | |
| taker | No | your 0x wallet address; needed for an unsigned transaction, omit for price only | |
| amount | No | amount to sell in human units, e.g. "10" | |
| toChain | No | destination chain for a bridge; omit for a same-chain swap | |
| toToken | Yes | token to buy: symbol or 0x address | |
| fromToken | Yes | token to sell: symbol (USDC, ETH, WETH, USDT, DAI...) or 0x address | |
| recipient | No | receiver of output (default taker) | |
| slippageBps | No | max slippage in bps, default 50 | |
| amountBaseUnits | No | amount in base units (integer); required for custom token addresses |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||