Skip to main content
Glama

Agent Data Tools: Prices and DeFi

DeFi yields, best APY pools

defi_yields
Read-only

The best DeFi yields now across ~15,000 lending, staking, LP and vault pools: APY (base, reward), 30-day mean and change, TVL, stablecoin flag, impermanent-loss risk and exposure. Filter by chain, protocol, token, stablecoins, no IL, single exposure, TVL and APY range; sort by APY, TVL or 30-day mean. Source: DefiLlama. Use to find where to earn yield on a token or stablecoin. Not investment advice. Example: chain=Base. Price $0.002/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

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

Input Schema

NameRequiredDescriptionDefault
noIlNotrue: only pools without impermanent-loss risk
sortNoapy (default), tvl or apyMean30d
chainNoChain name(s), comma-separated: Ethereum, Base, Arbitrum, Solana…
limitNoNumber of pools (1-50, default 20)
maxApyNoMaximum APY in percent, to drop farm spikes (default 1,000)
minApyNoMinimum APY in percent (default 0)
minTvlNoMinimum TVL in USD (default 1,000,000)
singleNotrue: single-asset exposure only
symbolNoA token in the pool: USDC, ETH, WBTC…
projectNoProtocol slug(s): aave-v3, lido, morpho-blue, pendle…
stablecoinNotrue: stablecoin pools only

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent=false; the description adds genuinely new context: the DefiLlama source, snapshot freshness ('now'), the fact that calls are billed ($0.002, first 10 free, failures free) and that repeats are not free — which corroborates idempotentHint=false. It does not contradict anything, though it leaves the response envelope/size for the limit parameter to imply.

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?

Purpose and data coverage are front-loaded in the first sentence, and the guidance/example/pricing follow in a sensible order. It is a single dense paragraph with semicolon chains, and the billing point is restated twice ('Price $0.002/call…' and 'each call is charged, so repeats are not free'), which is mild redundancy.

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

Completeness4/5

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

With 11 optional parameters, no output schema and no required inputs, the description carries the burden well: it enumerates returned fields, the data source, cost model and a usage example. It stops short of describing result ordering/pagination behavior or what an empty result means, which keeps it just below fully complete.

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 every one of the 11 parameters (noIl, sort, chain, limit, maxApy, minTvl, single, symbol, project, stablecoin) is already documented with defaults and accepted values. The description only summarizes the same filter/sort set at a higher level and adds no syntax or behavioral nuance beyond the schema, so the baseline 3 applies.

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 resource (DeFi yield pools) with the exact fields returned (base/reward APY, 30-day mean and change, TVL, stablecoin flag, IL risk, exposure) and the universe size (~15,000 pools). The word 'now' implicitly separates it from the historical sibling defi_yield_history, but no sibling is named outright, so it falls short of full 5-level differentiation.

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 use case — 'find where to earn yield on a token or stablecoin' — plus a worked example (chain=Base), which tells an agent the intended context. It offers no exclusions or named alternatives (e.g. when to use defi_yield_history instead), so it is clear context without 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