Skip to main content
Glama

Ranks DeFi pools by total APY from DefiLlama's public

agent_intel_defi_yield_risk_optimizer
Read-only

Ranks DeFi pools by total APY from DefiLlama's public yields data, filtered by chain, minimum TVL and optional stablecoin-only, with each pool's TVL, 7-day impermanent loss, reward share of APY and IL-risk flag. Ranking is by APY, not by safety: there is no audit or exploit-history score (none is in this free source). Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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

Input Schema

NameRequiredDescriptionDefault
chainNoChain name as DefiLlama spells it, e.g. Base, Ethereum, Arbitrum (default Base)
limitNoHow many pools, 1 to 20 (default 5)
maxApyPctNoHide pools above this APY percent (default 1000); extreme APYs are usually reward-token artefacts
minTvlUsdNoMinimum pool TVL in USD (default 1000000)
stablecoinOnlyNotrue to list only stablecoin pools

Output Schema

NameRequiredDescriptionDefault
noteNo
chainNo
poolsNo
sourceNo
checkedAtNo
maxApyPctNo
minTvlUsdNo
stablecoinOnlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds substantial context beyond them — cost ($0.002 per successful call), the payment rail (x402, USDC on Base, Solana and 10 more networks), and that failed calls are not charged. It also discloses a real data limitation (no audit or exploit-history score in this free source), which is exactly the kind of caveat an agent needs before trusting results.

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?

The first sentence is front-loaded with the verb, source and filters; the following two sentences carry the safety caveat and pricing. It is dense but each clause earns its place, with only minor redundancy in re-listing fields the output schema already covers.

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?

For a read-only, open-world data tool with a full output schema, nothing an agent needs is missing: what it ranks, what filters exist, what the data cannot tell you, and the billing model including failure handling. The output schema covers return shape, so the description need not explain it.

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 parameter is already documented in detail, including why maxApyPct exists ('extreme APYs are usually reward-token artefacts'). The description repeats chain, minimum TVL and stablecoin-only but omits limit and maxApyPct, adding no syntax or format detail beyond the schema — baseline 3 applies.

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?

The description states a specific verb and resource ('Ranks DeFi pools by total APY from DefiLlama's public yields data') plus the exact filters and returned fields. No sibling tool in the supplied list ranks DeFi yield pools, so an agent can distinguish this from the MEV, liquidity, and slippage tools without opening 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 Guidelines4/5

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

It gives a clear usage frame plus an explicit exclusion: 'Ranking is by APY, not by safety: there is no audit or exploit-history score', which tells the agent this must not be used as a safety due-diligence tool. It does not name an alternative tool for the safety case, so it stops short of full when/when-not routing.

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