Skip to main content
Glama

DeFi lending rates (supply/borrow APY) and TVL on Base, Ethereum, Arbitrum: Aave v3, Compound v3, Morpho, Moonwell

defi_yields
Read-onlyIdempotent

Use when an agent must compare DeFi lending rates. Input: chain (base, ethereum, arbitrum), optional protocol (aave-v3, compound-v3, morpho, moonwell) and asset (USDC, USDT, WETH, WBTC, cbBTC, wstETH…). Output: JSON per market supply/borrow APY, utilization, supplied/borrowed, TVL USD; chain=ethereum adds wstETH/cbETH/rETH staking rates (7-day APR). Read from contracts, no yield API. Example: ?chain=ethereum&asset=USDC Price: $0.0045 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

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

Input Schema

NameRequiredDescriptionDefault
assetNoComma list of the chain's assets (Base: USDC, WETH, cbBTC, wstETH, cbETH, EURC; Ethereum: USDC, USDT, WETH, WBTC, cbBTC, wstETH; Arbitrum: USDC, USDT, WETH, WBTC, wstETH). Bad value → 400 before payment
chainNoChain (default base). Moonwell is Base only; Morpho vaults Base and Ethereum. Bad value → 400 before payment
protocolNoComma list of aave-v3, compound-v3, morpho, moonwell (default all on the chain). Bad value → 400 before payment (not charged)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Changed3 schema fields changed
    • changedInput schema / properties / asset / description
      Previous value: -"Comma list of USDC, WETH (or ETH), cbBTC, wstETH, cbETH, EURC (default all). Bad value → 400 before payment (not charged)"New value: +"Comma list of the chain's assets (Base: USDC, WETH, cbBTC, wstETH, cbETH, EURC; Ethereum: USDC, USDT, WETH, WBTC, cbBTC, wstETH; Arbitrum: USDC, USDT, WETH, WBTC, wstETH). Bad value → 400 before payment"
    • addedInput schema / properties / chain
      Added value: +{
      +  "description": "Chain (default base). Moonwell is Base only; Morpho vaults Base and Ethereum. Bad value → 400 before payment",
      +  "type": "string"
      +}
    • changedInput schema / properties / protocol / description
      Previous value: -"Comma list of aave-v3, compound-v3, morpho, moonwell (default all). Bad value → 400 before payment (not charged)"New value: +"Comma list of aave-v3, compound-v3, morpho, moonwell (default all on the chain). Bad value → 400 before payment (not charged)"
  5. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world. The description adds genuinely new behavioral context: data is read from contracts rather than a yield API, invalid values return 400 before payment and are not charged, and each call costs $0.0045 via x402. It doesn't describe pagination or response latency, but the cost and billing/model disclosure is substantial.

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 use case, then Input, Output, data source and example, which is a sensible order. It is dense and slightly telegraphic in places (the asset list, the payment chain parenthetical), but each sentence carries information the caller needs.

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 no output schema, the description still specifies the return shape (JSON per market with APY, utilization, supplied/borrowed, TVL USD) and the chain-specific extra. Combined with defaults for optional parameters and the error and billing behavior, an agent has everything needed to call it correctly.

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 would be 3. The description adds value beyond the schema by noting the ethereum chain returns extra staking rates (7-day APR) and by listing example asset ticks, giving the agent a sense of which parameters change the response shape.

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 ('compare DeFi lending rates') plus the exact scope: three chains, four named protocols, and the metrics returned (supply/borrow APY, utilization, TVL). An agent can distinguish this from sibling tools like defi_staking or defi_health without opening the schema.

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

Usage Guidelines4/5

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

Opens with an explicit use case ('Use when an agent must compare DeFi lending rates') and supplies a concrete example call (?chain=ethereum&asset=USDC). It does not name alternatives or state when not to use it, but the scope is narrow enough that the intended context is unambiguous.

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