Request a swap
tarmac_request_swapRequest a quoted swap from a simulated wallet; every request is validated by policy checks for tokens, router, recipient, spend cap, freshness, slippage, and minimum output before execution.
Instructions
Ask Tarmac to execute a quoted swap from the simulated wallet. Every request is checked by the policy layer (tokens, router, recipient, spend cap, freshness, slippage, minimum output); a failing request is blocked and recorded.
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": {
"quoteId": "<quoteId>",
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amountIn": "<amountIn>"
},
"name": "tarmac_request_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Why — recorded in the trace, never used for the decision | |
| quoteId | Yes | ||
| tokenIn | Yes | ||
| amountIn | Yes | ||
| tokenOut | Yes | ||
| minAmountOut | No |