swap_quote
Best-price same-chain token swap quote via the KyberSwap aggregator (ethereum, base, arbitrum, optimism, polygon, bsc). Includes a disclosed 0.1% integrator fee.
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>",
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amount": "<amount>"
},
"name": "swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| amount | Yes | amount of tokenIn in token units, e.g. '0.05' | |
| tokenIn | Yes | symbol (ETH, USDC, ...) or 0x address | |
| tokenOut | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | Yes | Disclosed Quietwork fee (already reflected in expectedOut) | |
| chain | Yes | ||
| gasUsd | No | ||
| chainId | Yes | ||
| tokenIn | Yes | ||
| amountIn | Yes | ||
| tokenOut | Yes | ||
| amountInUsd | No | ||
| amountInWei | Yes | ||
| expectedOut | Yes | ||
| amountOutUsd | No | ||
| routerAddress | Yes | ||
| expectedOutWei | Yes |