Get a swap quote
get_quoteEstimate how much the user receives for sending an amount, with the minimum and maximum for the pair. Network fees are already taken out of estimatedAmount. The rate floats, so the result is an estimate, not a promise. Show any warnings to the user.
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": "get_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Currency to receive. Currency id from search_currencies, for example btc, eth or usdttrc20. | |
| from | Yes | Currency to send. Currency id from search_currencies, for example btc, eth or usdttrc20. | |
| amount | Yes | Amount of the from currency, as a decimal like "0.05". |