swap_quote
Find the best swap output across Base aggregators by providing sell token, buy token, and amount. Set optional slippage for precise quotes.
Instructions
Best swap output across Base aggregators (quote only, no calldata). Costs $0.005 USDC via x402.
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": {
"sell": "<sell>",
"buy": "<buy>",
"amount": "<amount>"
},
"name": "swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buy | Yes | Token address or ETH | |
| sell | Yes | Token address or ETH | |
| amount | Yes | Sell amount in the sell token's smallest unit, as a decimal string | |
| slippageBps | No | 1..5000, default 50 |