Skip to main content
Glama

swap_via_nattswap

Cross-chain token swap powered by Li.Fi across 70+ chains incl. Hyperliquid. USE WHEN: bridge, fund gas, treasury routing, or rebalance. RETURNS: Li.Fi route + execution_readiness + swap_actions_v1. Prefer signing swap_actions_v1 in order. MCP free; on-chain swap costs gas + HyperNatt 0.5% integrator fee (Li.Fi may add its own cut — read quote.estimate.feeCosts). Side effects: MCP read-only until wallet signs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toChainYesDestination Li.Fi chain id
toTokenYesDestination token contract address on toChain
slippageNoMax slippage percent (e.g. 0.5 for 0.5%)
fromChainYesSource Li.Fi chain id (e.g. 1 Ethereum, 8453 Base, 42161 Arbitrum)
fromTokenYesSource token contract address on fromChain
toAddressYesRecipient wallet 0x + 40 hex chars
fromAmountYesAmount in token smallest units (wei for 18-decimal tokens)
fromAddressYesSender wallet 0x + 40 hex chars

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the behavioral burden. It discloses that the MCP call is read-only until the wallet signs, details on-chain gas costs and the 0.5% HyperNatt fee, and notes that Li.Fi may add its own cut, instructing the user to read quote.estimate.feeCosts. It also recommends signing swap_actions_v1 in order, providing clear operational transparency.

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 concise and well-structured, with clear 'USE WHEN:', 'RETURNS:', and 'Side effects:' labels. The opening sentence immediately establishes purpose, and every clause adds relevant information (fees, signing order). There is no wasted text.

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

Completeness4/5

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

Given a complex swap tool with 8 parameters and no output schema, the description covers purpose, usage, return values, fees, and side effects. It could elaborate slightly on what 'execution_readiness' means, but the provided instruction to sign swap_actions_v1 in order gives sufficient operational guidance. Overall, it is highly comprehensive for the tool's complexity.

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?

The input schema already provides 100% description coverage for all 8 parameters, so the baseline is 3. The description does not add parameter-level details beyond the schema; it focuses on fees and execution flow. It meets the baseline but does not exceed it.

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 explicitly states 'Cross-chain token swap powered by Li.Fi across 70+ chains', providing a specific verb and resource. It also lists concrete use cases (bridge, fund gas, treasury routing, rebalance), clearly differentiating it from sibling tools like get_agent_manifest and get_liq_radar.

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

Usage Guidelines5/5

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

The description includes an explicit 'USE WHEN:' section with concrete scenarios (bridge, fund gas, treasury routing, rebalance). This gives clear context for when to invoke the tool, and while it doesn't name alternative tools, the listed use cases are actionable and sufficient for decision-making.

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

A4.1/5.0
Disambiguation5/5

The three tools are cleanly separated: one handles manifest/onboarding, one delivers liquidity radar data, and one executes swaps. The descriptions explicitly guide the intended order, so an agent is unlikely to choose the wrong tool.

Naming Consistency4/5

The get_ prefix is used for the two read-oriented tools, and swap_via_nattswap is clearly an action tool. Everything uses snake_case and predictable verbs; the only minor deviation is the longer via_nattswap suffix on the swap tool.

Tool Count5/5

Three tools is a tightly scoped set and each one earns its place: understand the server, read market terrain, act with a swap. The manifest even confirms the intentional three-tool design.

Completeness4/5

The tools form a coherent manifest-to-radar-to-swap workflow with no hard dead end. There are minor gaps such as no separate balance/status check or swap-history tool, but these feel outside the core scope rather than blocking.

Resources