Skip to main content
Glama

Beggar Bot

lifi_swap_bridge_build

Build a LI.FI same-chain or cross-chain swap+bridge tx with fees, duration, approval and simulation Paid: $0.02 USDC via x402.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lifi_swap_bridge_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNofrom
chainNochain
amountNoamount
token_inNotoken_in
recipientNorecipient
token_outNotoken_out
destinationNodestination
slippage_bpsNoslippage_bps

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two genuinely useful traits: the response includes fees, duration, approval and simulation data, and the call costs $0.02 USDC via x402 (a real payment/auth requirement). It does not say whether this only constructs calldata or also submits/broadcasts, whether the approval is a separate transaction, or what happens on unsupported routes, leaving key mutation-vs-read behavior ambiguous.

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

Conciseness4/5

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

A single dense sentence that front-loads the action and resource, then appends the payment terms compactly. No filler, though the terse "Paid: $0.02 USDC via x402" fragment is slightly telegraphic.

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?

The description covers the return contents, which matters since there is no output schema, and flags the paid/x402 requirement. However, for an 8-parameter transaction builder with no annotations and no required fields declared, it leaves too much open: which parameters are needed for a same-chain versus cross-chain call, chain identifiers/format, and whether an approval transaction must be submitted separately.

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?

Nominal schema coverage is 100%, but every field description is a tautology of the field name ("from": "from", "chain": "chain"), so the schema supplies no real semantics. The tool description adds nothing either — it never explains the from/destination vs chain relationship, the token_in/token_out vs recipient split, units for amount, or the meaning of slippage_bps, and with 0 required parameters it is unclear which fields are actually mandatory.

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

Purpose4/5

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

States a specific verb+resource ("Build a LI.FI same-chain or cross-chain swap+bridge tx") and names the provider LI.FI, which distinguishes it from relay_bridge_swap_build, uniswap_swap_build and the other swap builders in the sibling list. It also enumerates what the built transaction carries (fees, duration, approval, simulation). It does not explicitly contrast itself with the LI.FI route-listing sibling, so it falls short of a 5.

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

Usage Guidelines2/5

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

No when-to-use or when-not guidance is given: nothing says to prefer lifi_bridge_routes for discovery versus this tool for construction, or when to pick LI.FI over the other swap/bridge builders. The only implied usage is "if you want a LI.FI transaction built," which the agent must infer from the name.

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.