Skip to main content
Glama

Has this rate held?

yield_history
Read-onlyIdempotent

Retrieve daily APY and TVL history for a market with min, median, max, and volatility, so you can tell whether a high rate is typical or a recent spike before acting.

Instructions

Daily APY and TVL history for one market, with min, median, max and volatility over the window. Answers the question a live rate cannot: whether today's APY is typical for this market or a spike that appeared yesterday. Call it before acting on any unusually high rate. observations says how many daily snapshots exist — a market added recently will have few, and a short series should not be read as stability.

Input Schema

NameRequiredDescriptionDefault
daysNoLook-back window in days, 1-365, default 30
poolYesMarket id: the `pool` field from list_base_yields, or 'vault:<address>' using an address from list_lending_vaults, e.g. 'vault:0x7bfa7c4f149e7415b73bdedfe609237e29cbf34a'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • changedInput schema / properties / days / description
      Previous value: -"Look-back window in days, default 30"New value: +"Look-back window in days, 1-365, default 30"
    • changedInput schema / properties / pool / description
      Previous value: -"Market id: a pool id from list_base_yields, or vault:<address> from list_lending_vaults"New value: +"Market id: the `pool` field from list_base_yields, or 'vault:<address>' using an address from list_lending_vaults, e.g. 'vault:0x7bfa7c4f149e7415b73bdedfe609237e29cbf34a'"
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered; the description adds genuine value by disclosing the interpretation hazard that a short `observations` series should not be read as stability. It does not cover cost, rate limits, or pagination, so it is useful context rather than complete disclosure.

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?

Three sentences, each doing distinct work: what it returns, why it beats a live rate, and a caveat on sparse data. The most actionable instruction (call before acting on a high rate) is front-loaded in the middle of the text without preamble.

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 burden of describing returns and does so concretely (daily series plus min/median/max/volatility and an `observations` count). For a two-parameter read-only tool, nothing an agent needs to call it correctly is missing.

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 `pool` even documenting its source in list_base_yields and list_lending_vaults, so the baseline is 3. The description adds no further syntax or format detail for `days` or `pool` beyond what the schema already states.

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?

States a specific resource (daily APY and TVL history for one market) plus the derived statistics returned (min, median, max, volatility), which makes its role unambiguous. It also carves out its niche against the live-rate siblings (list_base_yields / best_yield) by framing itself as the tool that answers what 'a live rate cannot.'

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 a clear triggering condition: 'Call it before acting on any unusually high rate,' and explains the question it answers (typical vs. spike). It does not explicitly name an alternative sibling or state a when-not case, so it stops 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.