get_swap_quote
Get a swap quote for exchanging tokens, returning expected output amount and price impact. Use it to compare DEX routes before executing.
Instructions
Get a swap quote for exchanging tokens. Returns expected output amount and price impact.
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": {
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amountIn": "<amountIn>"
},
"name": "get_swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dex | No | Specific DEX to use (e.g., 'uniswap', 'pancakeswap'). If not specified, finds best route. | |
| network | No | Network name (e.g. 'bsc', 'opbnb', 'ethereum', 'base', etc.) or chain ID. Supports others main popular networks. Defaults to BSC mainnet. | bsc |
| tokenIn | Yes | Address of the token to sell | |
| amountIn | Yes | Amount of input token (in wei/smallest unit) | |
| tokenOut | Yes | Address of the token to buy |