Compare up to 10 swap routes at once
compare_quotesQuote up to 10 routes in a single call (e.g. pay with USDC on Solana vs USDC on Base vs ETH) and get the best one by USD output. Saves round trips.
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": {
"routes": "<routes>"
},
"name": "compare_quotes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routes | Yes | List of {from_token, from_chain, to_token, to_chain, amount}. | |
| referrer | No | Optional: your NEAR account (e.g. 'myagent.near'). You earn 1/3 of the service fee on every swap routed with it. The user pays the same. |