Skip to main content
Glama

Start a portfolio stress test

start_stress_test
Idempotent

Use when an investor asks to replay a historical crisis against their current portfolio. Use a scenario_id from list_stress_scenarios and a new request_id. After retry_after_seconds, call get_stress_test with the same request_id. Retries reuse the run and it appears in Investboard history. AI agents may start at most 8 new stress tests and prepared reviews a day for one investor, counted together. The result is hypothetical and leaves the portfolio unchanged.

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": {
      "request_id": "<request_id>",
      "scenario_id": "<scenario_id>"
    },
    "name": "start_stress_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
request_idYesA new UUID you make up for this request. Send the same one again only to repeat the identical request. It is plumbing: never show it to the investor or ask them for it.
scenario_idYesThe id of one scenario from list_stress_scenarios.

Output Schema

NameRequiredDescriptionDefault
dataYes
scopeYes
reasonYes
statusYes
revisionYes
native_urlYes
computed_atYes
limitationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / request_id / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / scenario_id / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • changedOutput schema / properties / data / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "retry_after_seconds": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "run": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "baseCurrency": {
      -            "enum": [
      -              "EUR",
      -              "USD",
      -              "GBP",
      -              "CHF",
      -              "JPY"
      -            ],
      -            "type": "string"
      -          },
      -          "jobId": {
      -            "format": "uuid",
      -            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -            "type": "string"
      -          },
      -          "scope": {
      -            "const": "whole_wealth",
      -            "type": "string"
      -          },
      -          "status": {
      -            "const": "queued",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "status",
      -          "jobId",
      -          "scope",
      -          "baseCurrency"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "run",
      -      "retry_after_seconds"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "retry_after_seconds": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "run": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "baseCurrency": {
      +            "enum": [
      +              "EUR",
      +              "USD",
      +              "GBP",
      +              "CHF",
      +              "JPY"
      +            ],
      +            "type": "string"
      +          },
      +          "jobId": {
      +            "format": "uuid",
      +            "type": "string"
      +          },
      +          "scope": {
      +            "const": "whole_wealth",
      +            "type": "string"
      +          },
      +          "status": {
      +            "const": "queued",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "status",
      +          "jobId",
      +          "scope",
      +          "baseCurrency"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "run",
      +      "retry_after_seconds"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Added

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations it discloses that retries reuse the existing run (consistent with idempotentHint), that runs appear in Investboard history, that there is a per-investor daily quota, and that the output is hypothetical with the portfolio left unchanged — explaining why a non-readOnly run is still non-destructive. These are operational facts the annotations cannot express.

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?

Five short sentences, each carrying a distinct fact — trigger, inputs, retry loop, quota, and outcome — with the triggering condition front-loaded and no filler.

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 two-parameter, non-destructive async job with an output schema, everything an agent needs is present: prerequisites, retry loop, rate limit, and the fact that the portfolio is unchanged. Return values are correctly left to the output schema.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: it binds request_id to the downstream get_stress_test call so the polling loop can be completed correctly, and it frames scenario_id as a value obtained from a sibling tool. It adds modest but genuine operational framing rather than repeating field text.

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 first sentence gives a specific verb and resource framed by user intent: replaying a historical crisis against the current portfolio. It is clearly distinguished from list_stress_scenarios (which supplies the scenario_id) and get_stress_test (which polls the result), so an agent can place it in the workflow 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?

It states when to use it (investor asks for a crisis replay), where the scenario_id must come from, that a fresh request_id is required, and the exact follow-up: wait retry_after_seconds then call get_stress_test with the same request_id. The daily cap of 8 combined stress tests and prepared reviews for one investor is an explicit usage constraint an agent could otherwise violate.

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.