Skip to main content
Glama

Agent Data Tools: Prices and DeFi

DeFi pool APY history

defi_yield_history
Read-only

Daily APY and TVL history of one DeFi pool (a poolId from /defi/yields or a DefiLlama pool URL): up to 365 days with APY base and reward, plus the average, min, max and latest APY over the window. Source: DefiLlama. Use to check whether a yield is steady or a short spike before an agent deposits. Not investment advice. Example: pool=747c1d2a-c668-4682-b9f9-296708a3dd90. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "pool": "<pool>"
    },
    "name": "defi_yield_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoDays of history (1-365, default 30)
poolYesDefiLlama pool id (UUID) or pool URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / days / maximum
      Previous value: -9007199254740991New value: +365
    • changedInput schema / properties / days / minimum
      Previous value: --9007199254740991New value: +1
  2. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, non-idempotent, and non-destructive. The description adds genuinely useful non-annotation context: pricing ($0.01/call, first 10 free, failed calls free) and that repeats are charged, which explains the idempotentHint=false consequence. However, 'reads or computes only and changes nothing' merely restates the readOnly annotation, and it says nothing about rate limits or what a failed/empty pool lookup returns.

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 action and returns, then use case, then sourcing and billing. Most sentences earn their place, though 'Not investment advice' is boilerplate and the closing 'each call is charged, so repeats are not free' partially repeats the earlier price sentence.

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 shape fully: APY base and reward, TVL, plus average/min/max/latest APY over the window. Combined with the pool-id sourcing, coverage window, pricing, and read-only guarantee, an agent has everything needed to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds real meaning: `pool` accepts either a UUID (with a concrete example) or a DefiLlama pool URL, and it tells the agent where to obtain that id. `days` is only glossed as 'up to 365 days' with no default or aggregation-window detail beyond what the schema already says.

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 verb and resource ('Daily APY and TVL history of one DeFi pool'), names the upstream source (DefiLlama), and scopes the window (up to 365 days). It distinguishes itself from the sibling defi_yields by explaining that the poolId comes from /defi/yields, so an agent can route discovery vs. history correctly.

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 concrete decision context: 'Use to check whether a yield is steady or a short spike before an agent deposits,' which tells the agent when this tool is the right call. It also implies the discovery path (get poolId from /defi/yields) but never states an explicit 'do not use this to list pools' exclusion.

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