Skip to main content
Glama

spectra_compare_yield

Compare fixed yield from PT against variable yield of underlying IBT to decide if locking a fixed rate is worthwhile. Accounts for entry costs and LP alternatives.

Instructions

Compare Spectra's fixed yield (via PT) against the variable yield of the underlying interest-bearing token. Helps users decide if locking in a fixed rate is worthwhile versus staying in the variable-rate position.

Protocol context:

  • Fixed rate is labeled "implied APY" (annualized, compounded). Variable rate is labeled "IBT APR" (not compounded). LP yield is labeled "LP APY". Each is labeled at point of use.

  • Entry cost (price impact) is amortized over days to maturity.

  • LP alternative: providing liquidity earns trading fees + SPECTRA gauge emissions.

Output surfaces competing interpretations when the data is ambiguous — e.g., positive raw spread but negative effective spread after entry cost, or incentive-dominated variable rate.

Use spectra_get_looping_strategy to lever up the fixed yield via Morpho. Use spectra_get_portfolio to check your current positions. Use spectra_scan_opportunities for multi-chain comparison.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesThe blockchain network
pt_addressYesThe PT contract address to compare
ve_spectra_balanceNoYour veSPECTRA token balance. Computes real boost using B = min(2.5, 1.5*(v/V)*(D/d)+1).
capital_usdNoYour deposit size in USD (default $10,000). Used with ve_spectra_balance to compute per-pool boost.
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 adds useful behavioral context: the output surfaces competing interpretations when data is ambiguous (e.g., positive raw spread but negative effective spread), and explains protocol context for rates (implied APY, IBT APR, LP APY) and entry cost amortization. It does not explicitly state read-only but implies it.

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?

The description is well-structured in three paragraphs (purpose, protocol context, alternative tools). While it is slightly long, every sentence adds value and avoids redundancy. It is front-loaded with the core purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (4 parameters, no output schema, protocol-specific) the description covers key aspects: rates, entry costs, LP alternative, ambiguous outputs. It does not explain return format, which is acceptable without output schema. Overall, it provides sufficient context for an agent to use the tool appropriately.

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%, but the description adds value beyond schema: it explains the formula for real boost using ve_spectra_balance (B = min(2.5, 1.5*(v/V)*(D/d)+1)), and the default for capital_usd and its interaction with ve_spectra_balance. This provides deeper context for the parameters.

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 it compares fixed yield vs variable yield, helping users decide if locking in a fixed rate is worthwhile. It distinguishes from sibling tools by explicitly naming alternative tools like spectra_get_looping_strategy, spectra_get_portfolio, and spectra_scan_opportunities.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit guidance on when to use this tool (deciding fixed vs variable) and when to use alternatives (e.g., spectra_get_looping_strategy for leveraging, spectra_get_portfolio for current positions, spectra_scan_opportunities for multi-chain comparison). It also notes that the output may be ambiguous in certain scenarios.

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/Finanzgoblin/spectra-mcp-server'

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