defi_yields
Filter DefiLlama yield pools using red, activo or protocolo; optional pool_id requests bounded history. Returns up to 15 selected pools, APY/TVL fields, coverage and source-specific capture metadata. Class-based outlier and divergence rules are descriptive, with match gaps disclosed. Snapshot timing, pool comparability and investment outcomes are not independently established. [x402: 0.01 USDC per call on Base]
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "defi_yields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| red | No | Optional nonempty chain name, trimmed and matched case-insensitively for exact equality against captured pool.chain. Omit for all captured eligible chains. A chain outside that captured universe returns an explicit error; this does not select another data source. | |
| desde | No | Optional timezone-aware ISO8601 cut, not in the future. Compares current eligible pools with the latest local batch at or before that cut. Changes use the full eligible universe, independently of red/activo/protocolo display filters. Missing older batches are reported; no history coverage is guaranteed. | |
| activo | No | Optional nonempty asset symbol token. It is trimmed, uppercased and matched against tokens of the pool symbol (for example USDC); not a substring, contract-address or mint lookup. Omit for all eligible symbols. A token with no matches may produce an empty selected list. | |
| pool_id | No | Optional exact pool ID for local batch-history retrieval only; it does not filter the current top-pool list. History defaults to 30 days unless historial_dias supplies 1-90. This is not a live DefiLlama history request; missing local history is disclosed as a gap. | |
| protocolo | No | Optional nonempty protocol/project identifier, such as aave-v3. Trimmed and matched case-insensitively for exact equality with pool.proyecto; not a substring or protocol-contract lookup. Omit for all projects in the captured eligible universe. | |
| historial_dias | No | Requires pool_id; history availability is not guaranteed. |