Skip to main content
Glama
romudille-bit

AgentPay x402 — Economic-intelligence layer for AI Agents

yield_scanner

Read-onlyIdempotent

Find top DeFi yield opportunities and pool APYs for any token across protocols, ranked by APY with TVL, chain, and risk data.

Instructions

Find best DeFi yield opportunities across protocols for a given token

Use when: You need to find the best yield/APY for a token across DeFi protocols. Not for: you need a protocol's total TVL rather than pool APYs — defi_tvl; risk_level is a heuristic, run token_security on the pool's token before depositing. Returns: list of pools with protocol, apy, tvl_usd, chain, risk_level sorted by APY descending Example response: {"token": "USDC", "pools": [{"protocol": "morpho", "apy": 8.74, "tvl_usd": 312000000.0, "chain": "Ethereum", "risk_level": "low"}, {"protocol": "aave-v3", "apy": 5.21, "tvl_usd": 1840000000.0, "chain": "Ethereum", "risk_level": "low"}, {"protocol": "compound-v3", "apy": 4.87, "tvl_usd": 920000000.0, "chain": "Ethereum", "risk_level": "low"}], "source": "defillama"}

Price: free. Read-only live public data; no API key, nothing signed or spent. Fails with an error message on an unknown symbol or an unreachable upstream source.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoFilter by chain: 'ethereum', 'base', 'arbitrum', 'polygon'. Leave empty for all chains.
tokenYesToken symbol to find yields for, e.g. 'ETH', 'USDC', 'BTC'
min_tvlNoMinimum pool TVL in USD (default 1,000,000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.2
    • addedInput schema / properties / chain / description
      Added value: +"Filter by chain: 'ethereum', 'base', 'arbitrum', 'polygon'. Leave empty for all chains."
    • addedInput schema / properties / min_tvl / description
      Added value: +"Minimum pool TVL in USD (default 1,000,000)"
    • changedInput schema / properties / token / description
      Previous value: -"Token symbol, e.g. ETH, USDC"New value: +"Token symbol to find yields for, e.g. 'ETH', 'USDC', 'BTC'"
  2. Addedv0.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/non-destructive/open-world, and the description adds substantive context on top: cost ('free'), auth ('no API key, nothing signed or spent'), and failure behavior (error on unknown symbol or unreachable upstream). It also discloses the risk_level heuristic caveat, which is not visible in the schema.

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 purpose, then cleanly labeled Use when/Not for/Returns/Example sections. The embedded example response is somewhat long, but it substitutes for the missing output schema, so it earns its place.

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?

No output schema exists, so the description compensates by describing the return shape ('list of pools with protocol, apy, tvl_usd, chain, risk_level sorted by APY descending') and giving a concrete example. Failure modes and constraints are also covered, leaving nothing essential missing.

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 all three parameters (token, chain, min_tvl) are already documented in the schema. The description adds no syntax or format detail beyond the schema, so the 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+resource+scope ('Find best DeFi yield opportunities across protocols for a given token') and explicitly contrasts with the sibling defi_tvl, which handles TVL rather than pool APYs. An agent can distinguish it from related siblings 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?

Provides explicit 'Use when' and 'Not for' clauses naming the alternative tool (defi_tvl), plus a proactive prerequisite suggesting token_security before depositing. When-to-use, when-not-to-use, and the alternative are all covered.

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