get_swap_route
Finds all possible swap paths between two tokens, including multi-hop routes, to support swaps when no direct pool exists.
Instructions
Find all possible swap paths between two tokens, including multi-hop routes. Useful for tokens without a direct pool.
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": {
"tokenA": "<tokenA>",
"tokenB": "<tokenB>"
},
"name": "get_swap_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenA | Yes | Source token symbol or contract ID | |
| tokenB | Yes | Destination token symbol or contract ID |