Get a Cambio swap quote
get_quoteCambio’s quote for swapping one crypto asset to another, for an exact amount sent or an exact amount to receive, with how it compares to other exchanges. For someone who wants to swap, convert or exchange crypto, asks how much they would receive, or asks how much they need to send to get an amount. Each leg takes its network (for example tron, bsc, ethereum, arbitrum, solana, bitcoin). The card shows every amount. The swap itself is created on cambio.one or in Telegram from the card’s buttons, never here.
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_currency": "<from_currency>",
"to_currency": "<to_currency>"
},
"name": "get_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Amount of from_currency the customer sends, as the customer wrote it, e.g. "10". Empty when the customer named the amount to receive instead. | |
| to_network | No | Network the customer receives on, as the customer named it. Empty when the customer did not name one, with the same result as from_network. | |
| to_currency | Yes | Asset the customer receives | |
| from_network | No | Network of the asset sent, as the customer named it, e.g. tron, bsc, ethereum, arbitrum, solana, bitcoin. Empty when the customer did not name one: a coin Cambio offers on one network only gets it filled in, and for any other the result lists the networks Cambio offers it on. | |
| from_currency | Yes | Asset the customer sends, e.g. USDT, BTC, ETH | |
| receive_amount | No | Amount of to_currency the customer wants to receive, as the customer wrote it, e.g. "500" in "I need 500 USDT on Tron, paying with ETH". Empty when the customer named the amount sent. The quote then says how much from_currency is sent to receive it. |