Skip to main content
Glama

spectra_get_portfolio

Fetch a wallet's Spectra portfolio: PT, YT, LP balances with USD values, claimable yield, rates, and unclaimed rewards. Query one chain or all chains.

Instructions

Get wallet positions on Spectra for a specific address. Returns PT, YT, and LP balances with USD values, claimable yield, and current rates. Queries a single chain or all chains. Use this to understand what a wallet currently holds on Spectra.

Also fetches unclaimed Merkl rewards (SPECTRA gauge emissions and other incentive programs) per position. Merkl rewards are best-effort — if the Merkl API is unavailable, the portfolio still displays without reward data.

Protocol context:

  • Depositing IBT always mints BOTH PT and YT in equal amounts. If a wallet holds YT but no PT, it sold or LPed its PT. If it holds PT but no YT, it sold its YT.

  • PT + YT = 1 underlying at maturity. This identity is fundamental to all strategies.

  • Balance ratios are the key signal. Output shows Position Shape (e.g., "YT/PT 4:1") so you can reason about what the holder's position implies given the mechanics above.

  • When investigating a strategy, ALWAYS cross-reference portfolio with spectra_get_pool_activity. Activity shows the HOW (transaction patterns), portfolio shows the WHAT (resulting position). Neither alone tells the full story.

  • Strategies often span multiple wallets. If spectra_get_pool_activity shows concentrated activity from several addresses, check each one to build the full picture.

  • For activity analysis, use spectra_get_pool_activity with the address parameter — it will automatically cross-reference portfolio data and provide flow accounting, contract detection, gas estimates, and pool impact analysis.

  • Use spectra_get_address_activity to scan all pools for an address's activity in one call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesThe wallet address (0x...)
chainNoSpecific chain to query. Omit to scan all chains.
Behavior4/5

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

No annotations are provided, so the description carries full burden for behavioral traits. It discloses that Merkl rewards are best-effort and may fail, and explains fundamental protocol mechanics (PT+YT=1, IB depositing mints both). However, it does not mention potential rate limits, performance considerations, or data freshness, which would elevate it to a 5. Nonetheless, the transparency about data sources and limitations is strong.

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 longer than ideal but well-structured: core purpose first, then Merkl rewards caveat, then protocol context and cross-referencing. It is front-loaded with the most important information. Could be slightly more concise (e.g., condensing protocol context), but it is clear and organized, earning a 4.

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?

Given the lack of output schema, the description comprehensively explains return fields (PT, YT, LP, USD, yield, rates, Merkl rewards). It also provides protocol context to interpret balances (e.g., position shape). With many sibling tools, it offers cross-referencing guidance. This fully equips an agent to use the tool correctly and interpret results, achieving maximum completeness.

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 that omitting the 'chain' parameter scans all chains, which is a critical usage hint beyond the schema's enum list. This incrementally improves clarity, justifying a 4.

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 that the tool retrieves wallet positions on Spectra, including PT, YT, LP balances, USD values, claimable yield, current rates, and Merkl rewards. It explicitly distinguishes from sibling tools like spectra_get_pool_activity, stating that this tool shows 'what' the holder's position is, while the other shows 'how' (transaction patterns). This level of specificity and differentiation earns a top score.

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 provides explicit when-to-use guidance, including cross-referencing with spectra_get_pool_activity and spectra_get_address_activity. It also advises checking multiple wallets if activity is concentrated. This directly helps an agent select the appropriate tool and avoid misuse, meeting the highest standard.

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