Skip to main content
Glama

FinTech Hodl Base DeFi risk intel

get_yields

Realized APY for Base vaults and lending markets: the APY depositors actually earned over 7 and 30 days, read from on-chain share prices, next to the quoted APY, with a verdict (matches, overstated, understated) and a risk score. Useful for finding the best yields on Base and spotting advertised yields that are not being paid. Ids work with every other route. 404 for unknown paths and 400 for invalid arguments, before any payment; 503 while data refreshes; charged only for a 200. Price: $0.05 USDC on Base (x402), charged only for a successful answer.

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

Input Schema

NameRequiredDescriptionDefault
sortNoOrder: risk_adjusted (default) ranks by opportunity score; realized_apy by the 30-day realized APY; sustainable_apy by the APY expected once incentives fade.
typeNoOpportunity type.
assetNoToken symbol, e.g. USDC or WETH.
limitNoHow many items (default 20).
min_apyNoMinimum quoted APY, percent.
risk_maxNoMaximum risk score (0-100, lower is lower modelled risk).
stable_onlyNoOnly stablecoin principal.
realized_onlyNoOnly opportunities with a realized on-chain APY.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / sort / description
      Previous value: -"Order: risk_adjusted (default) ranks by opportunity score; realized_apy by the 30-day realized APY."New value: +"Order: risk_adjusted (default) ranks by opportunity score; realized_apy by the 30-day realized APY; sustainable_apy by the APY expected once incentives fade."
    • changedInput schema / properties / sort / enum
      Previous value: -[
      -  "risk_adjusted",
      -  "realized_apy",
      -  "quoted_apy",
      -  "tvl"
      -]New value: +[
      +  "risk_adjusted",
      +  "realized_apy",
      +  "quoted_apy",
      +  "sustainable_apy",
      +  "tvl"
      +]
  2. Added

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the whole burden, and it does substantial work: it discloses the data source (on-chain share prices), the response components (realized vs quoted APY, verdict, risk score), error semantics (404 unknown path, 400 invalid args before payment, 503 during refresh) and the pricing/charging model ($0.05 USDC via x402, charged only on 200). That is strong, but an inference-time bar of 1 would only apply if it contradicted structured data; here it adds real value, though it omits pagination behavior and latency/refresh cadence beyond the 503 note.

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?

The text is front-loaded with the core definition and then packs provenance, use case, error/pricing behavior into two tight sentences. It loses a point for redundancy: charging is stated twice ("charged only for a 200" and "charged only for a successful answer"), and the sentence is dense enough to border on run-on.

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 an 8-parameter, zero-required, no-output-schema, no-annotation tool, the description covers response contents, errors, and payment well, so an agent can call it. However, the "ids work with every other route" line introduces an unused concept, and with no output schema the response shape (7-day vs 30-day fields, verdict values, ranking semantics of risk_adjusted) is only partially pinned down.

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%, with defaults and enum meanings documented inline (sort modes, type values, limit default 20, risk_max scale), so the schema does the heavy lifting. The description adds no parameter-level meaning beyond a side remark that "ids work with every other route," which isn't tied to any listed parameter and is somewhat confusing given there is no id parameter in the schema.

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 resource and metric — realized APY for Base vaults and lending markets, measured over 7 and 30 days from on-chain share prices — and contrasts it with quoted APY plus a verdict and risk score. That is far more than a restatement of the name, but it never names or distinguishes itself from siblings such as get_lending_rates, get_yield_farming, or get_opportunity_score, so an agent must infer the boundary.

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?

It gives a clear use context ("finding the best yields on Base and spotting advertised yields that are not being paid"), which tells an agent what job this tool serves. It does not state when to prefer it over the sibling rate/opportunity tools, nor any exclusions, so it stays short of full routing guidance.

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