Skip to main content
Glama

spectra_get_pool_capacity

Simulates PT swaps or LP deposits at increasing capital sizes to show price impact and APY degradation, revealing pool capacity limits.

Instructions

Analyze a pool's capacity by quoting PT trades at increasing capital sizes.

Shows how price impact and effective APY degrade as capital grows, helping curators and large deployers find the sweet spot (max capital with acceptable impact) and the exhaustion point (where APY collapses).

Two modes: "pt_buy" (default): Measures PT swap impact via Curve get_dy(). Shows how much capital can be deployed as a directional PT buyer before slippage degrades APY. "lp_add": Measures LP deposit impact. LP deposits add liquidity to BOTH sides of the pool, deepening it rather than consuming it. Impact is near-zero for balanced deposits. Shows pool share concentration and post-deposit pool depth. USE THIS MODE for MetaVault curator capacity analysis — curators deploy as LP.

Each tier is quoted independently (not cumulative). Real execution across multiple txns would face additional impact from pool state changes.

Output surfaces a capacity framing note: pt_buy mode measures directional swap impact, but MetaVault curators deploy as LP where entry impact is near-zero and the constraint is pool share concentration. Use lp_add mode for curator capacity analysis.

On-chain quotes use the actual Curve StableSwap-NG amplification parameter. Set use_on_chain=false for math-only estimates (faster, more conservative).

Use spectra_quote_trade for a single exact quote at a specific amount. Use spectra_scan_opportunities for capital-aware ranking across all pools. Use mv_check_ibt_health to verify the underlying IBT before deploying.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesThe blockchain network
pt_addressYesThe PT contract address (0x...)
stepsNoNumber of capital tiers in the ladder (default 8, max 12)
max_capital_usdNoUpper bound of the capital ladder in USD (default $1,000,000)
use_on_chainNoTry on-chain Curve get_dy() quotes (default true). Set false for math-only estimates.
modeNoAnalysis mode: 'pt_buy' for PT swap impact (default), 'lp_add' for LP deposit impact (MetaVault curators).pt_buy
Behavior5/5

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

With no annotations, the description fully discloses behavioral traits: independent tier quoting (non-cumulative), on-chain vs. math-only estimation, and the different impact profiles of pt_buy and lp_add modes. It also notes real execution would face additional pool state changes, setting accurate expectations.

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

Conciseness3/5

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

The description is informative but verbose (multiple paragraphs). It uses lists and clear sections, but contains some redundancy (e.g., the note about MetaVault curators appears twice). Could be trimmed for brevity without losing essential information.

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 tool's complexity (6 parameters, two modes, no output schema), the description covers all essential aspects: mode differences, tier quoting mechanics, on-chain vs. off-chain options, and links to related tools. It provides sufficient information for an agent to decide when and how to use this tool.

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 the baseline is 3. The description adds value beyond the schema by explaining the purpose of steps and max_capital, clarifying the use_on_chain trade-off, and providing context-specific guidance for the mode parameter (e.g., 'Use this mode for MetaVault curator capacity analysis').

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 analyzes pool capacity by quoting PT trades at increasing capital sizes, detailing two distinct modes (pt_buy and lp_add). It explicitly distinguishes the purpose for directional traders vs. LP deployers (MetaVault curators), making it easy to understand what the tool does.

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 for each mode and recommends lp_add for MetaVault curator capacity analysis. It also lists three alternative tools (spectra_quote_trade, spectra_scan_opportunities, mv_check_ibt_health) with specific contexts, enabling correct tool selection.

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