DeFi Intelligence Engine
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ENABLE_X402 | No | false | |
| MCP_TRANSPORT | No | stdio |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_best_yieldA | Select the single best DeFi yield opportunity for a given asset and risk profile. Scores 13,800+ pools across 548 protocols and 115 chains using a 9-signal risk algorithm (TVL, APY stability, reward dependency, outlier flag, momentum). Returns ONE opinionated recommendation with reasoning + 2 alternatives. Output: ~60 tokens — 97% smaller than raw DeFiLlama data. Use this when: an agent needs to deploy capital and wants a single actionable answer, not a list to evaluate manually. Do NOT use for: protocol comparison (use compare_yields), risk detail (use explain_risk). |
| explain_riskC | Analyse détaillée du risque d'un protocole spécifique pour un asset. |
| compare_yieldsB | Comparaison side-by-side risk-ajustée de plusieurs protocoles. |
| yield_alert_setA | Register an APY threshold alert. Returns alert_id to check later. FREE. Fires when get_best_yield finds an opportunity exceeding threshold_apy. Use yield_alert_check with alert_id to poll status. Use yield_alert_delete to remove. Alerts persist in server memory. Use this when: an agent wants to be notified when a yield opportunity opens without continuously calling get_best_yield. |
| yield_alert_checkA | Poll a yield alert status. FREE. Safe to call frequently — uses cached data. Returns current status (triggered/watching), current best APY vs threshold, and full recommendation if triggered. |
| yield_alert_deleteB | Delete a yield alert by ID. FREE. |
| yield_alerts_listA | List all active yield alerts. Useful for agents managing multiple positions. FREE. Returns: JSON with all alerts, their status, and age in seconds. |
| get_optimal_allocationA | Split capital optimally across multiple DeFi protocols for maximum risk-adjusted yield. Unlike get_best_yield (one protocol), this tool returns a weighted multi-protocol allocation that maximizes APY while respecting TVL constraints and risk limits. Ideal for amounts >$10,000 where diversification improves risk-adjusted returns. Use this when: an agent needs to deploy capital across multiple protocols. Do NOT use for: single-protocol analysis (use get_best_yield or explain_risk). |
| get_best_liquid_stakingA | Select the best liquid staking protocol for a given asset and risk profile. Scores protocols by TVL, audit count, age, and momentum. Returns one recommendation with reasoning and top alternatives. Covers: Lido, Rocket Pool, Coinbase cbETH, Jito, Marinade, and 50+ others. Use this when: an agent needs to stake an asset while keeping it liquid. Do NOT use for: yield farming (use get_best_yield), restaking (use get_best_restaking). |
| get_best_restakingA | Select the best restaking protocol by TVL and risk profile. Covers base restaking (EigenLayer, Symbiotic, Karak) and liquid restaking tokens (EtherFi, Renzo, Puffer, Kelp). Scored by TVL, audits, and age. Use this when: an agent wants to restake ETH or LSTs for additional yield. Do NOT use for: simple staking (use get_best_liquid_staking). |
| get_best_rwaA | Select the best Real World Asset (RWA) protocol by TVL and risk profile. Covers tokenized T-bills (Ondo USDY, BlackRock BUIDL), private credit (Maple, Centrifuge), and real estate protocols. Scored by TVL, audits, age. Use this when: an agent needs stable off-chain backed yield. Do NOT use for: on-chain DeFi yields (use get_best_yield). |
| get_perps_overviewA | Get top perpetuals/derivatives protocols ranked by 24h volume. Covers Hyperliquid, dYdX, GMX, Drift, Jupiter Perps, and 50+ others. Returns volume, open interest, and market share for each protocol. Use this when: an agent needs derivatives market intelligence. Do NOT use for: spot DEX (use DeFiLlama DEX endpoints), yield (use get_best_yield). |
| compare_perpsB | Compare perpetuals protocols side-by-side by volume and activity. |
| get_defi_overviewA | Complete DeFi market snapshot across all categories. FREE. Returns top protocol per category: Yield, Liquid Staking, Restaking, RWA, and Perps top-3. Ideal first call for agents needing market context before deciding which category to explore deeper. Use this as a starting point before calling category-specific tools. This call is FREE — use it to decide which paid tool to call next. Returns: JSON with market leaders per category + TVL + quick stats. |
| get_gas_priceA | Get current gas prices across urgency levels for a given chain. FREE. Returns safe/standard/fast gas prices in Gwei with USD cost estimate for a standard ERC-20 transfer (21,000 gas). Use this when: an agent needs current gas cost before executing a transaction. Follow with get_optimal_gas_window to decide whether to wait. |
| get_optimal_gas_windowA | Predict the best time window to execute transactions for minimum gas cost. Uses historical Ethereum gas patterns (hourly + day-of-week multipliers) to identify upcoming low-gas windows. Typical savings: 25-45% vs peak hours. Best windows: 3-7 AM UTC (daily low) and weekends (-20 to -25%). Use this when: an agent can defer a non-urgent transaction to save on gas. Combine with get_gas_price for current baseline. |
| score_contractA | Score a smart contract for security risks using GoPlus Security API. Checks for: honeypot detection, buy/sell tax, ownership risks, proxy patterns, trading cooldowns, blacklist functions, mint capabilities, and liquidity risks. Risk score 0-100 (100 = safest). Covers tokens and general contracts. Use this when: an agent is about to interact with an unknown contract or token. Do NOT use for: known safe protocols (use explain_risk for Aave/Morpho/etc.). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| yield_watch | Monitor yield and act when threshold is reached. Usage: /yield-watch asset=USDC target_apy=6.0 risk=safe |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/danteriva45-hub/defi-yield-engine'
If you have feedback or need assistance with the MCP directory API, please join our Discord server