Skip to main content
Glama

Cross-chain DeFi real-yield & liquidity matrix

defi_yield_pools
Read-onlyIdempotent

Rank cross-chain DeFi liquidity pools by risk-adjusted real base APY and impermanent loss exposure, then get strategic allocation advice for pools with TVL of $5M or more.

Instructions

[$0.03] Rank cross-chain DeFi liquidity pools with TVL >= $5M by risk-adjusted real base APY, impermanent loss exposure, and strategic allocation advice. Do not use for cross-chain swap arbitrage (use defi_cross_arb_plan) or wallet borrow health (use defi_position_shield). chain defaults to 'base' (pass 'all' to scan all supported chains at $5M+ TVL), and expiring timeout_ms returns degraded=true with deterministic rankings only. Live DeFiLlama data, read-only; requires x402 USDC or Stripe MPP (10 free lifetime calls via /api/free/*) at 20 req/min.

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_yield_pools"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoTarget chain (e.g. 'base', 'ethereum', 'arbitrum', 'solana', or 'all')base
timeout_msNoOptional deadline in ms. If the local LLM would exceed it, the response comes back fast with "degraded": true and non-LLM/cached data
session_tokenNoOptional prepaid session token (x402s_...) from https://apix402data.com/pay after the 10-call free preview.

Output Schema

NameRequiredDescriptionDefault
chainNo
poolsNo
cachedNo
degradedNo
endpointNo
pool_countNo
min_tvl_usdNo
schema_versionNo
average_net_apyNo
strategic_adviceNo
top_opportunity_poolNo
risk_adjusted_rankingsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv5.3.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, destructiveHint=false, idempotent, openWorld). The description adds real operational context beyond them: live DeFiLlama sourcing, a degraded=true fast-return path when timeout_ms expires, payment requirements (x402 USDC or Stripe MPP), a 10-call free preview, and a 20 req/min rate limit. It does not spell out what the allocation advice contains or how rankings are ordered on ties, which keeps it short of a 5.

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?

Front-loaded with the core action and cost tag, then exclusions, then defaults, then payment mechanics, so the agent can stop reading early. Dense but nearly every clause is actionable; the payment/rate-limit sentence is the only one that could be trimmed for a calling agent.

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 3-param, no-required-arg, read-only tool with an output schema, the description supplies everything else an agent needs: cost, auth/session path, rate limit, degraded-mode behavior, chain scope, and sibling routing. Return values are rightly left to the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine semantics: `chain` defaults to 'base' and passing 'all' scans all supported chains at the $5M+ TVL floor, and the timeout_ms behavior is restated as a deterministic-rankings fallback. That meaningfully tightens how the enum-less string parameter should be populated.

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 (rank cross-chain DeFi liquidity pools) with concrete ranking criteria: risk-adjusted real base APY, impermanent loss exposure, and allocation advice, gated at TVL >= $5M. An agent can distinguish it from defi_cross_arb_plan and defi_position_shield without opening any schema.

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

Usage Guidelines5/5

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

Explicitly names two when-not cases with the alternative tool for each (swap arbitrage -> defi_cross_arb_plan, borrow health -> defi_position_shield). Also documents the default chain ('base') and the 'all' escape hatch, so the common selection decision is fully resolved in the description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.