Skip to main content
Glama

What it would take to lose that much

reverse_stress
Read-onlyIdempotent

Starts from a loss the reader names and finds the least extreme combination of market moves that would produce it on this portfolio, beside the worst each of those moves actually did in the record. Use it for 'what would it take to lose that much?'; for what past crises actually did use past_crises. loss is a fraction (0.25 is a quarter); base sets the currency (default USD). No probability is computed: the answer says how large the moves would be, not how likely.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseNoCurrency every figure is expressed in (USD, EUR, GBP, CAD…). Default USD.
lossNoThe loss to explain, as a fraction: 0.25 = lose a quarter.
holdingsYesWhat is held: {ticker: weight or amount}. Weights need not sum to one; amounts in the base currency are also accepted (then the crises are shown in money). 1 to 100 holdings. Tickers as the exchange lists them (VOO, VWCE.DE, XAW.TO; 'CASH.USD' for cash).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoWhere the prices came from and what was missing or repaired.
lineNoOne sentence: what it would take.
movesNoPer market direction: label, plain wording, shock needed, sensitivity (beta), share of the loss, worst_seen in the record over the same number of days.
_fenceYesWhat these figures are and are not: descriptive, no forecast, no advice. Repeat its sense when presenting the result.
targetNoThe loss explained, as a negative fraction.
coverageNoShare of the portfolio's movement these directions explain.
window_endNoRecord end.
window_daysNoLength of the move considered, in trading days.
window_startNoRecord start.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), but the description adds a substantive behavioral limit: 'No probability is computed: the answer says how large the moves would be, not how likely.' That prevents a plausible misuse of the result. It stops short of describing cost, rate limits, or how the 'least extreme' combination is selected.

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?

Front-loaded with the core behavior, then usage routing, then parameter notes, then the probability caveat. Every sentence carries information; the parenthetical glosses are slightly redundant with the schema but not wasteful.

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?

For a read-only analytical tool with an output schema, a fully documented input schema, and sibling routing, the description supplies everything an agent needs: what it computes, when to pick it, and the key interpretive limitation.

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% and the nested holdings object is thoroughly documented in the schema itself. The description's 'loss is a fraction (0.25 is a quarter); base sets the currency (default USD)' largely restates what the schema already says, so it adds little beyond the baseline.

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?

States a specific verb and resource ('starts from a loss... finds the least extreme combination of market moves that would produce it on this portfolio') and explicitly contrasts with the sibling past_crises. An agent can distinguish it from the 21 other tools without opening a schema.

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?

Gives the triggering question verbatim ('what would it take to lose that much?') and names the alternative for the opposite question ('for what past crises actually did use past_crises'). When-to-use and when-not-to-use are both explicit.

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