Get a swap quote
tarmac_get_quoteFetches a swap quote between two tokens, returning the expected output amount, reference mid price, and slippage in BPS so you can check slippage against your policy limit before swapping.
Instructions
Quote tokenIn → tokenOut. Returns quoteId, amountOut, the reference (mid) output and slippageBps. Compare slippageBps to the policy limit before swapping.
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>",
"amountIn": "<amountIn>"
},
"name": "tarmac_get_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenIn | Yes | ||
| amountIn | Yes | ||
| tokenOut | Yes |