Skip to main content
Glama

Swap Tokens via Fibrous

swap_tokens
Destructive

Swap tokens with optimal routing, handling ERC-20 approvals and wrap/unwrap automatically across supported blockchains.

Instructions

Swap tokens using Fibrous aggregator for optimal routing. Handles ERC-20 approvals and wrap/unwrap automatically. Supported chains: Base, Citrea, HyperEVM, Monad. Set simulate=true for a no-broadcast preview; a gas estimate is returned where it can be calculated safely.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoTarget blockchain networkbase
amountYesAmount to swap (e.g. '0.1', '100')
simulateNoSet true for a no-broadcast preview; gas estimates may be unavailable
slippageNoSlippage tolerance percentage (default: 0.5)
to_tokenYesDestination token symbol
from_tokenYesSource token symbol (e.g. 'ETH', 'USDC', 'MON')
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds value beyond annotations by specifying automatic handling of ERC-20 approvals and wrap/unwrap, and the simulate option for preview. No contradiction with annotations (destructiveHint=true is consistent with swap).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five concise sentences, front-loaded with purpose and key behaviors. No wasted words, each sentence provides distinct information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema and description doesn't mention return values (e.g., transaction hash) except gas estimates for simulate. Lacks details on failure behavior, token prerequisites, or error handling, which is significant for a swap tool with 6 parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 100% coverage, so baseline is 3. Description adds specific explanation for simulate parameter (preview and gas estimates) but doesn't enhance meaning for other parameters beyond schema strings.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clear verb 'Swap' and resource 'tokens using Fibrous aggregator' immediately conveys the action. Distinguishes from siblings like send_tokens and get_balance.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Describes what the tool does but lacks explicit guidance on when to use it vs alternatives (e.g., send_tokens) or when not to use it. No exclusion criteria or prerequisites mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Fibrous-Finance/fibx'

If you have feedback or need assistance with the MCP directory API, please join our Discord server