Skip to main content
Glama

defi-yield-strategies

Allocate a portfolio across DeFi yield opportunities based on risk tolerance and size. Returns per-position allocation, APY, weekly yield estimate, chain, and trend.

Instructions

DeFi yield strategy planner. Given a portfolio size and risk tolerance, returns an optimized allocation across top DeFi yield opportunities. Risk tiers: low (stablecoins only, APY < 30%, TVL ≥ $50M), medium (TVL ≥ $10M, APY < 80%), high (TVL ≥ $1M, all assets). Output includes per-position allocation, APY, weekly yield estimate, chain, and 7-day APY trend. Covers 16K+ pools across 400+ DeFi protocols via DeFiLlama.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amount_usdNoPortfolio size in USD to allocate (e.g. 10000).
risk_toleranceNoRisk tier: low (stablecoin-only, large TVL), medium (mixed assets, min $10M TVL), high (any asset, min $1M TVL). Default: medium.
chainsNoOptional list of chains to include (e.g. ["Ethereum", "Base", "Arbitrum"]). Omit for all chains.
max_positionsNoMaximum number of positions in the strategy. Default: 5.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the tool's behavior: it returns per-position allocation, APY, weekly yield estimate, chain, and 7-day APY trend, and mentions coverage of 16K+ pools across 400+ protocols via DeFiLlama. It does not mention read-only nature or rate limits, but the behavior is sufficiently transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is four sentences long, front-loaded with the tool's core purpose, followed by concise details on risk tiers and output. Every sentence is informative and without redundancy.

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?

Despite lacking an output schema, the description fully explains the return format (per-position allocation, APY, weekly yield, chain, trend) and the input parameters. For a tool with 4 simple parameters and no nested objects, it is complete and leaves no ambiguity.

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 description coverage is 100%, so baseline is 3. The description adds value by explaining risk tiers in detail with specific thresholds (low: stablecoins only, APY < 30%, TVL ≥ $50M; medium: TVL ≥ $10M, APY < 80%; high: TVL ≥ $1M, all assets). This goes beyond the schema's brief descriptions.

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?

The description clearly states the tool's purpose as a 'DeFi yield strategy planner' that returns an optimized allocation given portfolio size and risk tolerance. It specifies the input and output, and the detail about risk tiers distinguishes it from sibling tools like 'defi-yields' or 'defi-portfolio'.

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?

The description provides clear context on when to use the tool by defining three risk tiers with specific criteria (TVL, APY, asset type). It implicitly guides selection based on user preferences, though it does not explicitly mention when not to use it or compare it to alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/thebrierfox/the-stall'

If you have feedback or need assistance with the MCP directory API, please join our Discord server