Skip to main content
Glama

FarmDash Agent OS

get_composer_quote

Read-only

Zero-custody atomic cross-chain DeFi action bundling via LI.FI Composer (bridge/swap + ordered destination contract calls). Validates wallet balance/allowance, returns exact-amount ERC-20 approval calldata when needed, and never signs or broadcasts. Supports dry_run: true.

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": {
      "fromChainId": "<fromChainId>",
      "toChainId": "<toChainId>",
      "fromToken": "<fromToken>",
      "toToken": "<toToken>",
      "toAmount": "<toAmount>",
      "walletAddress": "<walletAddress>",
      "contractCalls": "<contractCalls>"
    },
    "name": "get_composer_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoWhen true, validates request and fees without calling LI.FI.
toTokenYesDestination token contract address consumed by contractCalls.
slippageNoMax slippage percentage (default 0.5).
toAmountYesRequired destination token amount in base units.
fromTokenYesOrigin token contract address (0x0000...0000 for native).
toChainIdYesDestination EVM chain ID (1, 10, 137, 8453, 42161, 59144).
fromChainIdYesOrigin EVM chain ID (1, 10, 137, 8453, 42161, 59144).
contractCallsYes
walletAddressYesCustomer EVM wallet address.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations (readOnly/openWorld, non-idempotent, non-destructive), the description adds real behavioral facts: zero-custody, it validates balance/allowance, it returns exact-amount ERC-20 approval calldata when required, and it never signs or broadcasts. It does not address quote freshness/expiry, which is the practical meaning of idempotentHint=false, so one material behavior is left unstated.

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?

Three compact sentences, front-loaded with the core capability before the validation/no-broadcast caveats and the dry_run note. No filler, though the parenthetical could be tightened.

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?

For a nine-parameter tool with a nested contractCalls array and no output schema, the description never indicates what the response contains (transaction request fields, fee/quote breakdown, approval objects). A caller can decide to invoke it, but cannot anticipate the shape or lifetime of what it returns.

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 89%, so the parameters are already documented; the description's only added semantic is that contractCalls are executed in order. It says nothing extra about slippage, toAmount base units, or the supported chain set beyond what the schema states. Baseline 3 fits when the schema carries the parameter burden.

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?

The description names a specific mechanism and outcome: bundling bridge/swap plus ordered destination contract calls via LI.FI Composer, returning approval calldata. It is clearly a quote/calldata builder rather than an executor. It does not explicitly contrast itself with the sibling get_swap_quote, so sibling differentiation is only partial.

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?

The implied use case is evident (cross-chain actions that need destination contract calls after the bridge/swap), but there is no explicit 'use this instead of X when Y' statement. It also notes dry_run is supported without saying when a caller should prefer it. Coverage is adequate but leaves selection reasoning to inference.

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.

Resources