Get swap quote
get_quoteObtain a free indicative swap quote, including fees, to evaluate trade viability before executing a swap.
Instructions
Get a free indicative swap quote (output amount includes Tollbooth's fee). Use before build_swap to decide whether to trade.
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>",
"inputToken": "<inputToken>",
"outputToken": "<outputToken>",
"amount": "<amount>"
},
"name": "get_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain to swap on | |
| amount | Yes | Sell amount as an integer string in the input token's base units | |
| inputToken | Yes | Token being sold: mint address (solana) or ERC-20 address (EVM chains) | |
| outputToken | Yes | Token being bought: mint address (solana) or ERC-20 address (EVM chains) | |
| slippageBps | No | Max slippage in bps (default 100) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | How to build the swap transaction | |
| chain | No | ||
| feeBps | No | Tollbooth fee in basis points | |
| inputToken | No | ||
| inputAmount | No | Sell amount in base units | |
| outputToken | No | ||
| slippageBps | No | ||
| outputAmount | No | Estimated buy amount in base units, after fees |