DeFi lending rates (supply/borrow APY) and TVL on Base, Ethereum, Arbitrum: Aave v3, Compound v3, Morpho, Moonwell
defi_yieldsUse 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
| Name | Required | Description | Default |
|---|---|---|---|
| asset | No | 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 | |
| chain | No | Chain (default base). Moonwell is Base only; Morpho vaults Base and Ethereum. Bad value → 400 before payment | |
| protocol | No | Comma list of aave-v3, compound-v3, morpho, moonwell (default all on the chain). Bad value → 400 before payment (not charged) |