Skip to main content
Glama

Yield.xyz AgentKit

Get Yield Metadata

yields_get
Read-onlyIdempotent

Get full metadata for a single yield opportunity: fees, lock-up and cooldown periods, reward mechanics, and whether entry/exit is currently open. Show this to the user before they commit to entering a position.

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": {
      "yieldId": "<yieldId>"
    },
    "name": "yields_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
yieldIdYesYield ID e.g. "ethereum-eth-lido-staking"

Output Schema

NameRequiredDescriptionDefault
idYes
riskNo
tagsNo
stateNo
tokenYes
statusYes
tokensYes
chainIdNo
curatorNo
networkYes
metadataYes
mechanicsYes
providerIdYes
rewardRateYes
statisticsNo
inputTokensYes
outputTokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed48 schema fields changed
    • removedOutput schema / properties / curator / properties / description / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / curator / properties / description / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / curator / properties / logoURI / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / curator / properties / logoURI / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / curator / properties / name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / curator / properties / name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / mechanics / properties / entryLimits / properties / maximum / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / mechanics / properties / entryLimits / properties / maximum / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / mechanics / properties / entryLimits / properties / minimum / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / mechanics / properties / entryLimits / properties / minimum / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / mechanics / properties / entryLimits / properties / subsequentMinimum / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / mechanics / properties / entryLimits / properties / subsequentMinimum / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / state / properties / allocations / items / properties / allocationUsd / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / state / properties / allocations / items / properties / allocationUsd / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / state / properties / allocations / items / properties / maxCapacity / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / state / properties / allocations / items / properties / maxCapacity / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / state / properties / allocations / items / properties / remainingCapacity / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / state / properties / allocations / items / properties / remainingCapacity / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / state / properties / allocations / items / properties / tvl / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / state / properties / allocations / items / properties / tvl / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / state / properties / allocations / items / properties / tvlUsd / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / state / properties / allocations / items / properties / tvlUsd / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / state / properties / capacityState / properties / max / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / state / properties / capacityState / properties / max / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / state / properties / capacityState / properties / remaining / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / state / properties / capacityState / properties / remaining / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / state / properties / concentratedLiquidityPoolState / properties / fee24hUsd / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / state / properties / concentratedLiquidityPoolState / properties / fee24hUsd / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / state / properties / concentratedLiquidityPoolState / properties / tvlUsd / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / state / properties / concentratedLiquidityPoolState / properties / tvlUsd / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / state / properties / concentratedLiquidityPoolState / properties / volume24hUsd / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / state / properties / concentratedLiquidityPoolState / properties / volume24hUsd / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / state / properties / liquidityState / properties / liquidity / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / state / properties / liquidityState / properties / liquidity / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / state / properties / liquidityState / properties / utilization / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / state / properties / liquidityState / properties / utilization / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / statistics / properties / averagePositionSize / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / statistics / properties / averagePositionSize / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / statistics / properties / averagePositionSizeUsd / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / statistics / properties / averagePositionSizeUsd / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / statistics / properties / tvl / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / statistics / properties / tvl / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / statistics / properties / tvlRaw / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / statistics / properties / tvlRaw / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / statistics / properties / tvlUsd / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / statistics / properties / tvlUsd / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / statistics / properties / uniqueUsers / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / statistics / properties / uniqueUsers / type
      Added value: +[
      +  "number",
      +  "null"
      +]
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered elsewhere. The description adds only modest value beyond that: 'whether entry/exit is currently open' hints the data is time-sensitive, but there is no mention of error behavior for an unknown yieldId or freshness/caching.

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?

Two sentences, no filler, and the payload contents are front-loaded before the usage instruction. Every clause carries information an agent can act on.

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?

An output schema exists, so return-value explanation is unnecessary, and annotations cover the safety semantics; the description focuses appropriately on content and usage. The one remaining gap is how to obtain a valid yieldId (no pointer to yields_get_all), which matters for a tool whose only parameter must be discovered elsewhere.

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?

There is a single required parameter with 100% schema coverage, including a concrete example format ('ethereum-eth-lido-staking'), so the schema does the heavy lifting. The description adds no syntax or format detail and only implies through 'single yield opportunity' that an identifier is needed; 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?

The description uses a specific verb+resource ('Get full metadata for a single yield opportunity') and enumerates the contents: fees, lock-up and cooldown periods, reward mechanics, and entry/exit open status. The word 'single' implicitly separates it from the list-style sibling yields_get_all, but no sibling is named explicitly, keeping it short of a 5.

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 concrete usage rule: 'Show this to the user before they commit to entering a position', which tells the agent both when to call it and how to surface the result. It does not name alternatives or exclusions (e.g., use yields_get_all to discover a yieldId), so the guidance is clear but incomplete.

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