Quote a swap
get_swap_quoteThe best price for a swap on Robinhood Chain right now, after Scrooge's fee: what arrives, the least it may pay (minAmountOut), the fee in basis points and the venue. Pass the wallet to have its $SCROOGE discount counted.
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": {
"token_in": "<token_in>",
"token_out": "<token_out>",
"amount": "<amount>"
},
"name": "get_swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | How much of token_in to sell, as a decimal number such as 0.5 | |
| wallet | No | Optional: the wallet that will swap | |
| token_in | Yes | What is sold: a symbol (ETH, USDG, SCROOGE, NVDA…) or a contract address on Robinhood Chain | |
| token_out | Yes | What is bought: a symbol (ETH, USDG, SCROOGE, NVDA…) or a contract address on Robinhood Chain | |
| slippage_bps | No | Optional: the most the price may move before the swap reverts, in basis points (default 50 = 0.5%, at most 300 = 3% unless allow_high_slippage) | |
| allow_high_slippage | No | Optional: allow slippage up to 1000 basis points (10%); leave it off unless a thin market needs it |