Swap Tokens via Fibrous
swap_tokensSwap ERC-20 and native tokens on Base, HyperEVM, and Monad via Fibrous routing with automatic approvals and wrap/unwrap; use simulate=true for a no-broadcast preview.
Instructions
Swap tokens using Fibrous aggregator for optimal routing. Handles ERC-20 approvals and wrap/unwrap automatically. Supported chains: Base, HyperEVM, Monad. Set simulate=true for a no-broadcast preview; a gas estimate is returned where it can be calculated safely.
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": {
"amount": "<amount>",
"from_token": "<from_token>",
"to_token": "<to_token>"
},
"name": "swap_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Target blockchain network | base |
| amount | Yes | Amount to swap (e.g. '0.1', '100') | |
| simulate | No | Set true for a no-broadcast preview; gas estimates may be unavailable | |
| slippage | No | Slippage tolerance percentage (0.01-50, default: 0.5) | |
| to_token | Yes | Destination token symbol | |
| from_token | Yes | Source token symbol (e.g. 'ETH', 'USDC', 'MON') |