Skip to main content
Glama

x402, crypto, defi, base, usdc, evm, security, sec-edgar, news, web-search

Cross-chain DeFi real-yield & liquidity matrix

defi_yield_pools
Read-onlyIdempotent

[$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 workflow_cross_arb) or wallet borrow health (use workflow_defi_shield). Omitting chain scans all supported chains ($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 30-60 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

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. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, openWorld), it discloses the data source (live DeFiLlama), the payment/auth requirement (x402 USDC or Stripe MPP), the free-tier allowance (10 lifetime calls via /api/free/*), the rate limit (30-60 req/min), and the exact failure mode (degraded=true with deterministic rankings only). This is behavior an agent cannot infer from structured fields.

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?

It is front-loaded with purpose, then alternates, then operational constraints, and no sentence is filler. The bracketed '$0.03' prefix and the dense run-on of pricing/auth/rate-limit details in the final sentence make it slightly harder to parse than it needs to be.

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?

With an output schema present, return-value explanation is unnecessary, and the description instead covers cost, auth path, rate limits, degradation, and scope — everything an agent needs to call this read-only paid endpoint correctly.

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 coverage is 100%, so both parameters are already documented, and the description's note about omitting `chain` adds scope meaning. However, that note ('omitting chain scans all supported chains') sits awkwardly against the schema's declared default of 'base', which could mislead an agent about what a bare call does; timeout behavior is largely a restatement of the schema.

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 names a specific verb and resource ('Rank cross-chain DeFi liquidity pools') and narrows the scope with concrete criteria (TVL >= $5M, risk-adjusted real base APY, impermanent loss exposure). It explicitly distinguishes itself from two named siblings, so an agent can select it 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?

It gives explicit exclusions with the correct alternatives ('Do not use for cross-chain swap arbitrage (use workflow_cross_arb) or wallet borrow health (use workflow_defi_shield)'), and it spells out the two operating conditions that matter: omitting `chain` broadens the scan, and an expiring `timeout_ms` yields degraded results.

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