Skip to main content
Glama

Smart-account: swap tokens

fuse_smart_swap_tokens

Submits an ERC-4337 UserOperation executing a swap on Fuse via the Fusebox trade engine. Quote a swap first with fuse_get_trade_quote to preview the route.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
exactInNo`true` (default) treats `inputAmount` as sell amount; `false` treats it as buy amount.
inputTokenYesAddress of the token being sold.
inputAmountYesAmount in base units (wei for 18-decimal tokens).
outputTokenYesAddress of the token being bought.

TDQS

A3.7/5.0
Behavior2/5

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

No annotations are present, so the description carries the full burden. It states it submits a UserOperation, implying an on-chain write, but does not disclose that it is a state-changing mutation, requires authentication (e.g., smart wallet), has gas costs, or may fail. Critical behavioral details are missing for a transaction tool.

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?

The description is extremely concise, consisting of two sentences that efficiently convey the tool's action and a prerequisite. Every sentence earns its place with no wasted words.

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

Completeness3/5

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

Given the tool's complexity (swap via UserOperation, no output schema), the description lacks details about prerequisites (e.g., approved tokens, smart wallet existence), what the response contains, and potential failure modes. It is minimally adequate but leaves gaps.

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 coverage is 100%, so the input schema already describes each parameter adequately. The description adds no additional parameter meaning beyond what the schema provides. Baseline score of 3 is appropriate.

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?

The description clearly states it submits an ERC-4337 UserOperation to execute a swap via the Fusebox engine. It distinguishes itself from the quoting tool and other swap-related tools by specifying the execution action.

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

Usage Guidelines4/5

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

The description explicitly instructs users to first quote a swap with 'fuse_get_trade_quote' before using this tool, providing clear guidance on when to use it. However, it does not exclude alternative tools or mention conditions when not to use it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.7/5.0
Disambiguation5/5

All 50 tools have clearly distinct purposes, with descriptive names and descriptions that differentiate even similar concepts like token pricing (fuse_get_token_price, fuse_get_token_price_change, etc.). There is no ambiguity between tools.

Naming Consistency5/5

All tools follow a consistent 'fuse_verb_noun' pattern using snake_case, with groups like fuse_get_*, fuse_send_*, fuse_smart_*, and fuse_notification_*, making them predictable and easy to navigate.

Tool Count4/5

50 tools is on the higher side but appropriate given the breadth of Fuse Network operations (read/write, smart wallet, staking, trading, notifications, ENS, etc.). Each tool contributes to a well-scoped feature set without unnecessary redundancy.

Completeness4/5

The tool set covers a comprehensive range of blockchain interactions on Fuse, including balances, transfers, smart contracts, staking, trading, NFTs, notifications, and ENS. Minor gaps like governance or bridging exist but do not significantly impair common workflows.

Resources