Skip to main content
Glama
ryansilk

ApexVol MCP Server

run_scenario_analysis

Simulate what-if scenarios on a portfolio to estimate P&L under price moves, volatility changes, and time decay. Breaks down delta/vega/theta contributions for risk assessment.

Instructions

Run what-if scenario analysis on a portfolio.

Shows how portfolio value changes under different market conditions (linear delta/vega/theta approximation).

Use this tool when the user asks about:

  • What-if scenarios

  • Portfolio P&L under different conditions

  • Price/vol sensitivity

Args: positions: JSON array of positions, e.g. '[{"ticker": "AAPL", "position_type": "STOCK", "quantity": 100, "current_price": 210}, {"ticker": "AAPL", "position_type": "CALL", "quantity": -2, "strike": 220, "expiration": "2026-08-21", "current_price": 4.10, "delta": 0.31, "theta": -8.2, "vega": 21.0}]'. Get option Greeks from get_options_chain first. Plain text ("AAPL 100 shares") works for stock-only portfolios. stock_move_pct: Percent stock price change to simulate (e.g. -5) iv_change_pct: Percent IV change to simulate (e.g. 25) days_forward: Days of time decay to advance

Returns: Estimated P&L under the scenario with per-Greek contributions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
positionsYes
days_forwardNo
iv_change_pctNo
stock_move_pctNo
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 a key behavioral trait: the calculation is a 'linear delta/vega/theta approximation', and it also notes a prerequisite ('Get option Greeks from get_options_chain first') and an input format flexibility (plain text for stock-only portfolios). This adds valuable context beyond what the schema offers, though it doesn't cover error cases or side effects.

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 efficiently organized with clear sections: purpose, usage triggers, args, and returns. Every sentence provides necessary information—no filler or redundancy. The JSON example is detailed yet not excessive.

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 tool's moderate complexity (4 params, one with complex JSON format) and absence of an output schema, the description covers the essentials: return structure ('Estimated P&L with per-Greek contributions'), approximation method, dependencies, and all parameter meanings. It lacks explicit edge-case or error-condition guidance, but for a what-if calculation tool, the provided context is largely sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% description coverage, so the description fully compensates. It includes a detailed example for 'positions' with a JSON array, notes the requirement to fetch Greeks first, and explains the plain-text alternative. It also gives meaningful one-line descriptions for stock_move_pct, iv_change_pct, and days_forward, specifying units and purpose.

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 function: 'Run what-if scenario analysis on a portfolio' and explains it shows portfolio value changes under different market conditions with a specific approximation method. This distinguishes it from sibling tools like calculate_portfolio_greeks or calculate_expected_move by focusing on scenario simulation rather than current state or single-instrument moves.

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 explicit 'Use this tool when the user asks about' with three clear scenarios (what-if scenarios, portfolio P&L under conditions, price/vol sensitivity). It does not, however, name alternative tools or explicitly state when not to use it, so it stops short of full exclusion guidance.

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/ryansilk/apexvol-mcp'

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