Skip to main content
Glama

get_drawdown_analysis

Analyze portfolio drawdowns to calculate maximum drawdown percentages, identify drawdown periods, and assess recovery needs for risk management.

Instructions

Analyze portfolio drawdowns.

Calculates maximum drawdown and drawdown periods for the portfolio, useful for risk assessment. Args: name: The portfolio name. Returns: Dictionary containing: - max_drawdown: Maximum drawdown percentage - max_drawdown_period: Start and end dates of max drawdown - current_drawdown: Current drawdown from peak - recovery_needed: Percentage gain needed to recover Example: ``` result = get_drawdown_analysis(name="tech_stocks") print(f"Max Drawdown: {result['max_drawdown']:.2%}") ```

Caching Behavior:

  • Any input parameter can accept a ref_id from a previous tool call

  • Large results return ref_id + preview; use get_cached_result to paginate

  • All responses include ref_id for future reference

Preview Size: server default. Override per-call with get_cached_result(ref_id, max_size=...).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes

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/l4b4r4b4b4/portfolio-mcp'

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