defi_yields covers this job with DeFiLlama data, in two modes.
Find yields
Find the best stablecoin yields on Ethereum with at least $5M TVL. For each, show TVL and how much of the APY is base yield versus rewards.Your agent calls
defi_yields without protocols:
apy_percent, base_apy_percent,
reward_apy_percent, tvl_usd and the pool id. min_tvl_usd defaults to 1,000,000, which
filters out most traps. It costs 2 credits.
Compare protocols
Compare Aave and Compound on TVL and fees.Pass one or two DeFiLlama protocol slugs:
tvl_aave and
fees_compound, with fees over 24 hours, 7 days and 30 days. It costs 2 credits. Add
"metrics": ["tvl", "fees", "stablecoins"] to include stablecoin supply on the chain, for 1
more credit.
What to compare
Where DeFiLlama separates base yield from rewards, that split is the single most useful
signal when a headline number looks too good.
Then check the contract
A yield opportunity is also a contract you are about to approve. Run the token security checks on the pool token before committing, and check outstanding approvals afterward withanalyze_wallet and include: ["approvals"].

