Skip to main content
Glama

stress_test_portfolio

Simulate price moves, volatility changes, and time decay to stress test a portfolio and assess potential losses under hypothetical market scenarios.

Instructions

Stress test the current portfolio under hypothetical market scenarios: price moves, vol changes, time decay.

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": {
      "scenarios": "<scenarios>"
    },
    "name": "stress_test_portfolio"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoAccount ID
scenariosYesArray of stress scenarios

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden, and it leaves key traits unstated. It never says the operation is a non-mutating computation, whether it requires an authenticated account, how expensive it is to run, or what the result contains beyond a vague notion of scenario impact; the word 'hypothetical' hints at read-only behavior but does not state it.

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?

A single front-loaded sentence with a colon-delimited list of the scenario dimensions; every clause earns its place and there is no boilerplate or repetition of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter computation tool with full schema coverage and no output schema, the description is adequate but thin: it does not explain what 'current portfolio' means relative to the optional account argument, nor what shape of result (per-scenario P&L, Greeks, or exposure) an agent should expect, leaving meaningful gaps for a no-output-schema tool.

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 the schema already documents account, scenarios, name, daysForward, volChangePercent and priceChangePercent. The description's mention of 'price moves, vol changes, time decay' loosely maps to those fields but adds no format, unit, or default guidance beyond the schema, which is the expected baseline when the schema does the work.

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 uses a specific verb ('stress test') and a specific resource ('the current portfolio') and enumerates the scenario dimensions (price moves, vol changes, time decay), which separates it cleanly from siblings like portfolio_greeks or beta_exposure. It stops short of naming an alternative when a user wants a single-factor analytic instead, so it is clear but not fully differentiated.

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

Usage Guidelines3/5

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

Usage is only implied: 'hypothetical market scenarios' signals this is a what-if analysis rather than a live valuation, but there is no explicit when-to-use, when-not-to-use, or pointer to siblings such as portfolio_greeks for instantaneous sensitivities. An agent must infer the boundary between scenario stress testing and point-in-time greeks.

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

Deploy Server

Other Tools