Skip to main content
Glama

defi_yields

Read-onlyIdempotent

Filter DefiLlama yield pools using red, activo or protocolo; optional pool_id requests bounded history. Returns up to 15 selected pools, APY/TVL fields, coverage and source-specific capture metadata. Class-based outlier and divergence rules are descriptive, with match gaps disclosed. Snapshot timing, pool comparability and investment outcomes are not independently established. [x402: 0.01 USDC per call on Base]

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "defi_yields"
  }
}

Input Schema

NameRequiredDescriptionDefault
redNoOptional nonempty chain name, trimmed and matched case-insensitively for exact equality against captured pool.chain. Omit for all captured eligible chains. A chain outside that captured universe returns an explicit error; this does not select another data source.
desdeNoOptional timezone-aware ISO8601 cut, not in the future. Compares current eligible pools with the latest local batch at or before that cut. Changes use the full eligible universe, independently of red/activo/protocolo display filters. Missing older batches are reported; no history coverage is guaranteed.
activoNoOptional nonempty asset symbol token. It is trimmed, uppercased and matched against tokens of the pool symbol (for example USDC); not a substring, contract-address or mint lookup. Omit for all eligible symbols. A token with no matches may produce an empty selected list.
pool_idNoOptional exact pool ID for local batch-history retrieval only; it does not filter the current top-pool list. History defaults to 30 days unless historial_dias supplies 1-90. This is not a live DefiLlama history request; missing local history is disclosed as a gap.
protocoloNoOptional nonempty protocol/project identifier, such as aave-v3. Trimmed and matched case-insensitively for exact equality with pool.proyecto; not a substring or protocol-contract lookup. Omit for all projects in the captured eligible universe.
historial_diasNoRequires pool_id; history availability is not guaranteed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / activo / description
      Added value: +"Optional nonempty asset symbol token. It is trimmed, uppercased and matched against tokens of the pool symbol (for example USDC); not a substring, contract-address or mint lookup. Omit for all eligible symbols. A token with no matches may produce an empty selected list."
    • addedInput schema / properties / desde / description
      Added value: +"Optional timezone-aware ISO8601 cut, not in the future. Compares current eligible pools with the latest local batch at or before that cut. Changes use the full eligible universe, independently of red/activo/protocolo display filters. Missing older batches are reported; no history coverage is guaranteed."
    • addedInput schema / properties / pool_id / description
      Added value: +"Optional exact pool ID for local batch-history retrieval only; it does not filter the current top-pool list. History defaults to 30 days unless historial_dias supplies 1-90. This is not a live DefiLlama history request; missing local history is disclosed as a gap."
    • addedInput schema / properties / protocolo / description
      Added value: +"Optional nonempty protocol/project identifier, such as aave-v3. Trimmed and matched case-insensitively for exact equality with pool.proyecto; not a substring or protocol-contract lookup. Omit for all projects in the captured eligible universe."
    • addedInput schema / properties / red / description
      Added value: +"Optional nonempty chain name, trimmed and matched case-insensitively for exact equality against captured pool.chain. Omit for all captured eligible chains. A chain outside that captured universe returns an explicit error; this does not select another data source."
  2. Changed8 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "input": ""
      -  }
      -]New value: +[
      +  {}
      +]
    • addedInput schema / properties / activo
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / desde
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / historial_dias
      Added value: +{
      +  "description": "Requires pool_id; history availability is not guaranteed.",
      +  "maximum": 90,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • removedInput schema / properties / input
      Removed value: -{
      -  "description": "SYNTHORA defi-yields: stablecoin DeFi yields ranked with a risk outlier detector — APY vs class median (>=3x median = the excess yield IS the risk price). Only pools with TVL >= $10M. Source: DefiLlam",
      -  "examples": [
      -    ""
      -  ],
      -  "type": "string"
      -}
    • addedInput schema / properties / pool_id
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / protocolo
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / red
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "input": ""
      +  }
      +]
    • changedInput schema / properties / input / description
      Previous value: -"product parameters (JSON or text). Example: {\"input\": \"\"}"New value: +"SYNTHORA defi-yields: stablecoin DeFi yields ranked with a risk outlier detector — APY vs class median (>=3x median = the excess yield IS the risk price). Only pools with TVL >= $10M. Source: DefiLlam"
    • addedInput schema / properties / input / examples
      Added value: +[
      +  ""
      +]
  4. Added
  5. Removed
  6. Added

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, open-world) the description discloses real behavioral traits: a hard cap of 15 returned pools, bounded local batch history rather than live DefiLlama history, disclosure of match gaps, and an explicit per-call price of 0.01 USDC on Base. It also carries honest scope caveats that snapshot timing and pool comparability are not independently established. It stops short of naming concrete outlier/divergence thresholds, keeping 'descriptive' rules opaque.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead sentence is well front-loaded with purpose and the return shape, but the middle sentences ('Class-based outlier and divergence rules are descriptive, with match gaps disclosed') are dense jargon that costs the reader more than it conveys. The mixed English/Spanish parameter vocabulary adds friction for an agent scanning the text.

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?

For a 6-parameter, all-optional read tool with no output schema, the description does the heavy lifting: it names the returned fields, the 15-pool ceiling, the local-history limitation, and the payment cost. Only the price/latency behavior of the x402 gate and the concrete outlier rules are left undefined, which are modest gaps.

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 the baseline is 3. The description only restates that red/activo/protocolo are filters and that pool_id unlocks bounded history — information the schema already carries in greater detail. It adds no syntax, format, or matching-rule nuance beyond the structured fields.

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 — filter DefiLlama yield pools — and immediately names the three filter dimensions plus the optional history path via pool_id. It also declares the return shape ('up to 15 selected pools, APY/TVL fields'). Minor drag: the filter names 'red', 'activo', 'protocolo' are non-English and 'red' for chain is ambiguous without reading the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied, mostly through the schema's 'Omit for all captured eligible chains' style notes and the description's mention that pool_id requests bounded history rather than filtering the current list. There is no explicit when-to-use / when-not-to-use framing and no routing to any alternative tool for overlapping needs such as TVL ranking or stablecoin supply.

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.