swap quote
swap_quoteBest DEX swap price across every major exchange (KyberSwap aggregator): how much you get for an amount, USD values, price impact, gas cost and the route. Tokens by symbol (ETH, USDC, USDT, WETH, DAI, WBTC...) or address. Base, Ethereum, Arbitrum, Optimism, Polygon. Costs $0.003 USDC per call (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": {
"from_token": "<from_token>",
"to_token": "<to_token>",
"amount": "<amount>"
},
"name": "swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | base (default), ethereum, arbitrum, optimism, polygon | |
| amount | Yes | Amount of from_token, e.g. 100 | |
| to_token | Yes | ||
| from_token | Yes |