Skip to main content
Glama

Amaltash Investment & Retirement Calculators

Stock Market Crash Calculator

crash_impact
Read-onlyIdempotent

Portfolio stress test with an interactive chart. Works out how much a portfolio would lose if stocks fell by a chosen percent, given its mix of stocks, bonds and cash, with an optional loss limit.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "portfolio_value": "<portfolio_value>",
      "stocks_pct": "<stocks_pct>",
      "bonds_pct": "<bonds_pct>",
      "cash_pct": "<cash_pct>",
      "stock_crash_pct": "<stock_crash_pct>"
    },
    "name": "crash_impact"
  }
}

Input Schema

NameRequiredDescriptionDefault
cash_pctYesShare of the portfolio in cash, in percent.
bonds_pctYesShare of the portfolio in bonds, in percent.
stocks_pctYesShare of the portfolio in stocks, in percent. Stocks, bonds and cash must add up to 100.
portfolio_valueYesTotal portfolio value in US dollars.
stock_crash_pctYesHow far stocks fall, in percent, from 0 to 100.
drawdown_limit_pctNoOptional limit on the portfolio loss, in percent of the portfolio. Leave null for no limit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already establish a read-only, idempotent, non-destructive, closed-world calculation, so the safety profile is covered. The description adds that the result includes an interactive chart and an optional loss limit, but it does not explain assumptions such as bonds/cash remaining stable or how the limit affects results.

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?

Two sentences, front-loaded with the core operation and no redundant wording. 'Interactive chart' and the optional limit are useful details without bloating the definition.

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?

For a simple read-only calculator with full parameter descriptions and annotations but no output schema, the definition gives enough to call it correctly. A brief note on key assumptions or what the chart/result contains would make it fully complete.

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

Parameters3/5

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

Schema coverage is 100%, so all six parameters are already documented with bounds and descriptions. The description reinforces portfolio value, asset mix, crash percent, and optional loss limit, but adds no syntax or interpretation beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a concrete calculation: portfolio loss under a chosen stock decline, using stock/bond/cash mix and an optional loss limit. It clearly identifies this as a stress-test calculator, though it does not explicitly distinguish it from sibling tools such as drawdown_recovery or sequence_risk.

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

Usage Guidelines2/5

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

It does not say when to use this versus sibling calculators, nor does it give prerequisites or exclusions. The phrase 'portfolio stress test' implies a scenario-analysis use case, but there is no explicit routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources