get_dex_quotes
Fetch a live ParaSwap aggregate route for a supported token pair. Get expected output and route components to plan a DEX swap; costs 0.002 USDC per call on Base via x402.
Instructions
Get one live ParaSwap aggregate route for a supported pair. Returns expected output and route components; no independent venue comparison. Costs 0.002 USDC per call (x402 micropayment on Base).
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": "get_dex_quotes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Output token symbol or address (e.g. "USDC", "DAI", "0x...") | |
| from | Yes | Input token symbol or address (e.g. "ETH", "USDC", "0x...") | |
| chain | No | Chain to query (e.g. "ethereum", "base", "arbitrum"). Defaults to "ethereum". | |
| amount | Yes | Amount to swap (e.g. "1.5" for 1.5 ETH) |