Skip to main content
Glama

calculate_yield

Read-only

Project compound returns for a USDC deposit into any ACCRUE vault or model portfolio over a given holding period. Uses live APY data and applies the ACCRUE platform fee, which is charged on PRINCIPAL and never on yield. Direct vaults are FREE (0%); managed products are 0.50%/yr falling to 0.25% above $1M. Returns gross yield, platform fee, net yield and final balance. Because the fee is on principal, net yield can be negative over a short horizon — net_is_negative flags that. Use this when the user asks "how much would I earn" or "what would my $X grow to".

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "amount_usdc": "<amount_usdc>",
      "months": "<months>"
    },
    "name": "calculate_yield"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthsYesHolding period in months
target_idNoOptional vault ID or portfolio ID. If omitted, projects across all vaults and portfolios.
amount_usdcYesUSDC deposit amount in dollars

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/non-destructive annotations by disclosing the data source (live APY), the exact fee model (charged on principal, never yield; 0% direct vaults, 0.50% dropping to 0.25% above $1M), and the important edge case that net yield can go negative on short horizons with a net_is_negative flag. That is precisely the behavioral context an agent needs to interpret and explain results correctly.

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

Conciseness4/5

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

Front-loaded with the core purpose, then layers fee mechanics and return fields — each sentence carries information the agent needs given there is no output schema. It is a dense single paragraph that could be split into purpose/fee/return blocks for faster scanning, but nothing is redundant.

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 having no output schema, the description enumerates the returned fields (gross yield, platform fee, net yield, final balance) plus the net_is_negative flag, and explains the fee mechanics that determine those values. For a three-parameter read-only projection tool, nothing material is left unexplained.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: it clarifies that target_id can address either a vault or a model portfolio and that omitting it projects across all products, and the $1M fee threshold gives amount_usdc consequence beyond its plain 'deposit amount' schema text.

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?

States a specific verb and resource — projecting compound returns for a USDC deposit into an ACCRUE vault or model portfolio over a holding period — and distinguishes itself from siblings like compare_vaults or get_vault_details by being purely forward-looking. An agent can tell exactly what this computes without opening the schema.

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?

Gives explicit trigger phrasing: 'Use this when the user asks "how much would I earn" or "what would my $X grow to"', which maps intent to tool cleanly. It stops short of naming alternatives or stating when not to use it (e.g. vs. compare_vaults for side-by-side rate comparison), so it falls one step below fully explicit routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources