← cookbook · howto
Get realistic DeFi yields (emissions stripped) into your AI agent
DefiLlama reports apy_total including emissions inflation. Our tool strips emissions and prices IL risk. Real yield, not headline yield.
install (60 seconds)
pip install falsifylab-alpha-mcp
then in your agent's MCP config:
{
"mcpServers": {
"falsifylab-alpha": {
"command": "python",
"args": ["-m", "falsifylab_alpha_mcp"]
}
}
}
the prompt that works
paste this into your agent:
use top_yield_farms with min_apy=15 and asset=USDC. Strip any pool where realistic_apy > 500% (broken data) or TVL < $1M (illiquid). Rank survivors by realistic_apy / sqrt(TVL) — a crowded-vs-uncrowded proxy.
why this works
DefiLlama's apy_total includes emissions, which get dumped on TGE and collapse real yield. We compute realistic_apy = apy_base + apy_rewards × (1 - emissions_inflation_rate). Pools where the gap is large are emission farms with short half-lives.
the tool
top_yield_farms is one of 13 tools in FalsifyLab Alpha MCP (3 free, 10 Pro-only). Full schema at /.well-known/mcp/server-card.json. Tool descriptions at /install.
pricing
- Free tier: 3 tools, 5 results/query, no signup. Pro $19/mo: all 13 + real-time.
- Pro $19/mo: real-time, 100 results, 90d history. 7-day trial.
- Pro Plus $49/mo: 1min refresh, email + Slack alerts, webhooks.