smart_route
Compares all available swap rails including cross-chain bridges, direct liquidity, and Solana DEX in one call to return the best route with executable parameters for hard or exotic pairs.
Instructions
Universal crypto router: compares ALL available rails (cross-chain exchange bridge, direct H2H liquidity, Solana DEX) in one call and returns the best route with ready-to-execute parameters. Use for hard or exotic pairs.
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": "<from>",
"to": "<to>",
"amount": "<amount>"
},
"name": "smart_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination ticker, e.g. xmr, eth | |
| from | Yes | Source ticker, e.g. btc, sol, usdc | |
| amount | Yes | Amount in source asset |