Skip to main content
Glama

ChainGuard Web3 Security & DeFi MCP

find_best_defi_yields

Read-onlyIdempotent

Query live DeFiLlama yield pools across Base, Arbitrum, Solana, Ethereum, Optimism, Polygon, and BSC ranked by risk-adjusted sustainable APY and TVL safety score. Read-only market scan (5 free calls/hour per IP returning top 3 pools; full top-25 available via X-API-Key or $0.02 USDC x402 API). Returns JSON with count, chain_filter, asset_filter, and pools array (project, symbol, chain, apy_total, apy_base, tvl_usd, safety_score, il_risk).

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

Input Schema

NameRequiredDescriptionDefault
assetNoToken symbol substring filter (e.g. `USDC`, `USDT`, `ETH`, `SOL`, or empty string for any asset). Defaults to `USDC`.USDC
chainNoBlockchain filter (e.g. `Base`, `Arbitrum`, `Solana`, `Ethereum`, `Optimism`, `Polygon`, `BSC`, or `all`). Defaults to `Base`.Base
no_il_onlyNoWhen `true` (default), restricts results to single-sided lending/staking or correlated pools with zero impermanent loss risk.
min_tvl_usdNoMinimum pool Total Value Locked (TVL) in USD required for inclusion. Defaults to `1000000` ($1M).

Output Schema

NameRequiredDescriptionDefault
countYes
poolsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / asset / description
      Added value: +"Token symbol substring filter (e.g. `USDC`, `USDT`, `ETH`, `SOL`, or empty string for any asset). Defaults to `USDC`."
    • addedInput schema / properties / chain / description
      Added value: +"Blockchain filter (e.g. `Base`, `Arbitrum`, `Solana`, `Ethereum`, `Optimism`, `Polygon`, `BSC`, or `all`). Defaults to `Base`."
    • addedInput schema / properties / min_tvl_usd / description
      Added value: +"Minimum pool Total Value Locked (TVL) in USD required for inclusion. Defaults to `1000000` ($1M)."
    • addedInput schema / properties / no_il_only / description
      Added value: +"When `true` (default), restricts results to single-sided lending/staking or correlated pools with zero impermanent loss risk."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "count": {
      +      "type": "integer"
      +    },
      +    "pools": {
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "count",
      +    "pools"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, and the description adds information annotations cannot express: a concrete rate limit (5 free calls/hour per IP), a truncation behavior (top 3 vs top 25), and two access escalations (X-API-Key or $0.02 USDC via x402). These are exactly the operational constraints an agent needs before deciding whether a free call is sufficient.

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, front-loaded with the verb and scope before the access-tier detail and return shape. Every clause carries distinct information (chains, ranking, rate limit, tiering, response keys) with no filler.

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?

The tool is simple (4 optional params, no nesting), annotations cover the safety profile, and an output schema exists, so the description need not enumerate return fields in detail. Its one gap is interpretive: 'risk-adjusted' and the listed safety_score/il_risk fields are never defined, leaving the agent unable to explain what the scores mean.

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 defaults and filter semantics (asset substring, chain enum values, no_il_only, min_tvl_usd) are already fully documented in the schema. The description only adds that results are ranked by sustainable APY and a safety score, without explaining how safety_score or il_risk are computed — marginal added meaning, so 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?

States a specific verb and resource ('Query live DeFiLlama yield pools'), plus explicit scope (seven named chains) and ranking criteria (risk-adjusted sustainable APY, TVL safety score). No sibling tool in the list does yield discovery, so the agent can immediately route yield questions here.

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?

The description implies usage through its framing ('Read-only market scan') and the free-vs-paid tier note, which tells the agent what a free call actually yields (top 3 pools only). However, it never states when to prefer this tool over alternatives, nor any exclusions or prerequisites for the paid tier — that guidance is left to inference.

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.