Quote a swap
quote_swapQuote a swap between any two supported tokens, on any chains, with no account needed. Exact input: send amount (integer base units) of from, receive about amountOut of to and at least minOut, all-in. Assets are CAIP-19. Start it with create_swap.
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": "<from>",
"to": "<to>",
"amount": "<amount>"
},
"name": "quote_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | CAIP-19 of the asset you receive | |
| from | Yes | CAIP-19 of the asset you send | |
| amount | Yes | Exact input, in the `from` asset's base units | |
| slippageBps | No | Override; default is automatic (50 bps, 100 on long-tail tokens) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| quote | Yes | ||
| minOut | Yes | ||
| quoteId | Yes | ||
| amountIn | Yes | ||
| amountOut | Yes |