Skip to main content
Glama

Compare where an asset can earn

compare_yields
Read-onlyIdempotent

Ranked comparison of the places ADA, a stablecoin or another Cardano token can earn a return, for a given amount: staking, lending pools (Liqwid, Lenfi), peer-to-peer loans (FluidTokens) and DEX liquidity pools. Each option carries the yearly rate (percent) and whether it is an APR (simple) or an APY (compounding included), what the rate was measured from and over which window, how much the venue holds, the lock-up, risk tags and the return after one year in units of the asset. Liquidity-pool rates are fee income before impermanent loss. missingSources names data this deployment could not read (those venues are absent, not zero) and notCompared the venues that are not indexed. Rates are current or past readings, not promises: say so when you quote them.

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": "compare_yields"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetNoWhat is held: "ADA", or a token unit (policy id + asset name in hex) from `search`.ADA
amountNoHow much of the asset, decimal-adjusted (1000 = 1,000 ADA when asset is ADA). A large amount lowers the rate of a small venue.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent/open-world; the description goes well beyond them, disclosing that liquidity-pool rates are fee income before impermanent loss, that missingSources means venues are absent rather than zero-yield, and that notCompared lists non-indexed venues. These are exactly the interpretive traps an agent would otherwise fall into when reporting numbers.

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?

Front-loaded with the core purpose, then dense but non-redundant detail. The enumeration of returned fields is long, though it is justified because no output schema exists. No filler sentences, but the block is heavy to parse in one pass.

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

Completeness5/5

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

With no output schema, the description carries the return-value burden and does so thoroughly: APR vs APY distinction, measurement basis and window, venue size, lock-up, risk tags, and one-year return in asset units. Combined with the missingSources/notCompared semantics, an agent has everything needed to call and report correctly.

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 description coverage is 100%, so both parameters are already documented, including the note that a large amount lowers a small venue's rate. The description adds only the framing "for a given amount" and the one-year return convention, so it sits at the baseline rather than adding new parameter meaning.

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 and resource ("Ranked comparison of the places ... can earn a return, for a given amount") and enumerates the venue classes covered (staking, Liqwid/Lenfi lending, FluidTokens P2P, DEX LPs). An agent immediately knows what comes back. It does not, however, distinguish itself from the sibling get_earn_rates, so sibling differentiation is left to inference.

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?

Gives clear context for use: compare yield venues for a specific holding and amount, and it explicitly tells the agent to caveat quoted rates as current/past readings rather than promises. What is missing is any exclusion or explicit routing rule against get_earn_rates, which appears to be the nearest overlapping sibling.

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