Swap quote (no trade is made)
get_swap_quoteEstimate what a swap would return right now: the best route across the indexed DEX pools, amount out (decimal-adjusted), effective price, price impact (percent) and the smallest pool liquidity on the route (ADA). It never builds, signs or submits a transaction: the result includes swapUrl, a link the user opens to review the trade and sign it in their own wallet.
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": {
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amount": "<amount>"
},
"name": "get_swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount of tokenIn to sell, decimal-adjusted (100 = 100 ADA when tokenIn is ADA). | |
| tokenIn | Yes | What is sold: a token unit, or "lovelace" / "ADA" for ADA. | |
| tokenOut | Yes | What is bought: a token unit, or "lovelace" / "ADA" for ADA. |