Skip to main content
Glama

Stress test supplied holdings

stress_test_holdings
Read-onlyIdempotent

Estimate a named crisis's impact on supplied holdings using sector and asset-class shocks. Returns portfolio and position impacts, methods, sources and missing coverage. Scenarios: gfc_2008, covid_2020, rate_hike_2022, euro_crisis_2011, dotcom_2000. Needs no sign-in. For a strategy's historical path use backtest_holdings.

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": "<portfolio>",
      "scenarioKeys": "<scenarioKeys>"
    },
    "name": "stress_test_holdings"
  }
}

Input Schema

NameRequiredDescriptionDefault
portfolioYesSupplied portfolio; same shape as analyze_holdings.
scenarioKeysYesOne to five distinct historical scenarios to replay.

Output Schema

NameRequiredDescriptionDefault
linksYes
analysisYes
capabilityYes
computedAtYes
assumptionsYes
limitationsYes
baseCurrencyYes
modelVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / portfolio / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "baseCurrency": {
      -        "default": "EUR",
      -        "description": "Currency for all values; defaults to EUR.",
      -        "pattern": "^[A-Za-z]{3}$",
      -        "type": "string"
      -      },
      -      "basis": {
      -        "const": "weights",
      -        "default": "weights",
      -        "description": "Sizes are fractions summing to 1.",
      -        "type": "string"
      -      },
      -      "holdings": {
      -        "description": "Investor-supplied securities or cash positions.",
      -        "items": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "isin": {
      -                  "description": "Investor-supplied ISIN; trimmed and uppercased.",
      -                  "pattern": "^[A-Z]{2}[A-Z0-9]{9}[0-9]$",
      -                  "type": "string"
      -                },
      -                "weight": {
      -                  "description": "Share of the entire submitted portfolio: 0.6 means 60%.",
      -                  "exclusiveMinimum": 0,
      -                  "maximum": 1,
      -                  "type": "number"
      -                }
      -              },
      -              "required": [
      -                "isin",
      -                "weight"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "assetClass": {
      -                  "const": "cash",
      -                  "description": "Identifies a cash position.",
      -                  "type": "string"
      -                },
      -                "currency": {
      -                  "description": "Cash denomination.",
      -                  "pattern": "^[A-Za-z]{3}$",
      -                  "type": "string"
      -                },
      -                "weight": {
      -                  "description": "Share of the entire submitted portfolio: 0.6 means 60%.",
      -                  "exclusiveMinimum": 0,
      -                  "maximum": 1,
      -                  "type": "number"
      -                }
      -              },
      -              "required": [
      -                "assetClass",
      -                "currency",
      -                "weight"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "maxItems": 25,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "limit": {
      -        "default": 50,
      -        "description": "Maximum returned companies and underlying positions; tails retain omitted weight.",
      -        "maximum": 100,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "locale": {
      -        "default": "en",
      -        "description": "Language for explanations; defaults to en.",
      -        "enum": [
      -          "de",
      -          "en",
      -          "es",
      -          "it",
      -          "fr",
      -          "nl",
      -          "cs",
      -          "pl",
      -          "ru",
      -          "uk"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "holdings"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "baseCurrency": {
      -        "default": "EUR",
      -        "description": "Currency for all values; defaults to EUR.",
      -        "pattern": "^[A-Za-z]{3}$",
      -        "type": "string"
      -      },
      -      "basis": {
      -        "const": "values",
      -        "description": "Sizes are market values in baseCurrency.",
      -        "type": "string"
      -      },
      -      "holdings": {
      -        "description": "Investor-supplied securities or cash positions.",
      -        "items": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "isin": {
      -                  "description": "Investor-supplied ISIN; trimmed and uppercased.",
      -                  "pattern": "^[A-Z]{2}[A-Z0-9]{9}[0-9]$",
      -                  "type": "string"
      -                },
      -                "value": {
      -                  "description": "Market value already converted to baseCurrency. Never a native-currency amount.",
      -                  "exclusiveMinimum": 0,
      -                  "maximum": 100000000,
      -                  "type": "number"
      -                }
      -              },
      -              "required": [
      -                "isin",
      -                "value"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "assetClass": {
      -                  "const": "cash",
      -                  "description": "Identifies a cash position.",
      -                  "type": "string"
      -                },
      -                "currency": {
      -                  "description": "Cash denomination.",
      -                  "pattern": "^[A-Za-z]{3}$",
      -                  "type": "string"
      -                },
      -                "value": {
      -                  "description": "Market value already converted to baseCurrency. Never a native-currency amount.",
      -                  "exclusiveMinimum": 0,
      -                  "maximum": 100000000,
      -                  "type": "number"
      -                }
      -              },
      -              "required": [
      -                "assetClass",
      -                "currency",
      -                "value"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "maxItems": 25,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "limit": {
      -        "default": 50,
      -        "description": "Maximum returned companies and underlying positions; tails retain omitted weight.",
      -        "maximum": 100,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "locale": {
      -        "default": "en",
      -        "description": "Language for explanations; defaults to en.",
      -        "enum": [
      -          "de",
      -          "en",
      -          "es",
      -          "it",
      -          "fr",
      -          "nl",
      -          "cs",
      -          "pl",
      -          "ru",
      -          "uk"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "basis",
      -      "holdings"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "baseCurrency": {
      +        "default": "EUR",
      +        "description": "Value currency (default EUR).",
      +        "pattern": "^[A-Za-z]{3}$",
      +        "type": "string"
      +      },
      +      "basis": {
      +        "const": "weights",
      +        "default": "weights",
      +        "description": "Fractions summing to 1.",
      +        "type": "string"
      +      },
      +      "holdings": {
      +        "description": "Supplied positions.",
      +        "items": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "isin": {
      +                  "description": "Supplied ISIN.",
      +                  "pattern": "^[A-Z]{2}[A-Z0-9]{9}[0-9]$",
      +                  "type": "string"
      +                },
      +                "weight": {
      +                  "description": "Portfolio fraction (0.6 = 60%).",
      +                  "exclusiveMinimum": 0,
      +                  "maximum": 1,
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "isin",
      +                "weight"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "assetClass": {
      +                  "const": "cash",
      +                  "description": "Cash position.",
      +                  "type": "string"
      +                },
      +                "currency": {
      +                  "description": "Cash denomination.",
      +                  "pattern": "^[A-Za-z]{3}$",
      +                  "type": "string"
      +                },
      +                "weight": {
      +                  "description": "Portfolio fraction (0.6 = 60%).",
      +                  "exclusiveMinimum": 0,
      +                  "maximum": 1,
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "assetClass",
      +                "currency",
      +                "weight"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "maxItems": 25,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "limit": {
      +        "default": 50,
      +        "description": "Top positions per list (1–100). tailWeight sums the named rows beyond the list. No paging.",
      +        "maximum": 100,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "locale": {
      +        "default": "en",
      +        "description": "Language (default en).",
      +        "enum": [
      +          "de",
      +          "en",
      +          "es",
      +          "it",
      +          "fr",
      +          "nl",
      +          "cs",
      +          "pl",
      +          "ru",
      +          "uk"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "holdings"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "baseCurrency": {
      +        "default": "EUR",
      +        "description": "Value currency (default EUR).",
      +        "pattern": "^[A-Za-z]{3}$",
      +        "type": "string"
      +      },
      +      "basis": {
      +        "const": "values",
      +        "description": "Market values in baseCurrency.",
      +        "type": "string"
      +      },
      +      "holdings": {
      +        "description": "Supplied positions.",
      +        "items": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "isin": {
      +                  "description": "Supplied ISIN.",
      +                  "pattern": "^[A-Z]{2}[A-Z0-9]{9}[0-9]$",
      +                  "type": "string"
      +                },
      +                "value": {
      +                  "description": "Value in baseCurrency.",
      +                  "exclusiveMinimum": 0,
      +                  "maximum": 100000000,
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "isin",
      +                "value"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "assetClass": {
      +                  "const": "cash",
      +                  "description": "Cash position.",
      +                  "type": "string"
      +                },
      +                "currency": {
      +                  "description": "Cash denomination.",
      +                  "pattern": "^[A-Za-z]{3}$",
      +                  "type": "string"
      +                },
      +                "value": {
      +                  "description": "Value in baseCurrency.",
      +                  "exclusiveMinimum": 0,
      +                  "maximum": 100000000,
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "assetClass",
      +                "currency",
      +                "value"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "maxItems": 25,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "limit": {
      +        "default": 50,
      +        "description": "Top positions per list (1–100). tailWeight sums the named rows beyond the list. No paging.",
      +        "maximum": 100,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "locale": {
      +        "default": "en",
      +        "description": "Language (default en).",
      +        "enum": [
      +          "de",
      +          "en",
      +          "es",
      +          "it",
      +          "fr",
      +          "nl",
      +          "cs",
      +          "pl",
      +          "ru",
      +          "uk"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "basis",
      +      "holdings"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed3 schema fields changed
    • changedInput schema / properties / portfolio / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "baseCurrency": {
      -        "default": "EUR",
      -        "pattern": "^[A-Za-z]{3}$",
      -        "type": "string"
      -      },
      -      "basis": {
      -        "const": "weights",
      -        "default": "weights",
      -        "type": "string"
      -      },
      -      "holdings": {
      -        "items": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "isin": {
      -                  "pattern": "^[A-Z]{2}[A-Z0-9]{9}[0-9]$",
      -                  "type": "string"
      -                },
      -                "weight": {
      -                  "description": "Share of the entire submitted portfolio: 0.6 means 60%.",
      -                  "exclusiveMinimum": 0,
      -                  "maximum": 1,
      -                  "type": "number"
      -                }
      -              },
      -              "required": [
      -                "isin",
      -                "weight"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "assetClass": {
      -                  "const": "cash",
      -                  "type": "string"
      -                },
      -                "currency": {
      -                  "pattern": "^[A-Za-z]{3}$",
      -                  "type": "string"
      -                },
      -                "weight": {
      -                  "description": "Share of the entire submitted portfolio: 0.6 means 60%.",
      -                  "exclusiveMinimum": 0,
      -                  "maximum": 1,
      -                  "type": "number"
      -                }
      -              },
      -              "required": [
      -                "assetClass",
      -                "currency",
      -                "weight"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "maxItems": 25,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "limit": {
      -        "default": 50,
      -        "description": "Maximum returned companies and underlying positions; tails retain omitted weight.",
      -        "maximum": 100,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "locale": {
      -        "default": "en",
      -        "enum": [
      -          "de",
      -          "en",
      -          "es",
      -          "it",
      -          "fr",
      -          "nl",
      -          "cs",
      -          "pl",
      -          "ru",
      -          "uk"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "holdings"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "baseCurrency": {
      -        "default": "EUR",
      -        "pattern": "^[A-Za-z]{3}$",
      -        "type": "string"
      -      },
      -      "basis": {
      -        "const": "values",
      -        "type": "string"
      -      },
      -      "holdings": {
      -        "items": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "isin": {
      -                  "pattern": "^[A-Z]{2}[A-Z0-9]{9}[0-9]$",
      -                  "type": "string"
      -                },
      -                "value": {
      -                  "description": "Market value already converted to baseCurrency. Never a native-currency amount.",
      -                  "exclusiveMinimum": 0,
      -                  "maximum": 100000000,
      -                  "type": "number"
      -                }
      -              },
      -              "required": [
      -                "isin",
      -                "value"
      -              ],
      -              "type": "object"
      -            },
      -            {
      -              "additionalProperties": false,
      -              "properties": {
      -                "assetClass": {
      -                  "const": "cash",
      -                  "type": "string"
      -                },
      -                "currency": {
      -                  "pattern": "^[A-Za-z]{3}$",
      -                  "type": "string"
      -                },
      -                "value": {
      -                  "description": "Market value already converted to baseCurrency. Never a native-currency amount.",
      -                  "exclusiveMinimum": 0,
      -                  "maximum": 100000000,
      -                  "type": "number"
      -                }
      -              },
      -              "required": [
      -                "assetClass",
      -                "currency",
      -                "value"
      -              ],
      -              "type": "object"
      -            }
      -          ]
      -        },
      -        "maxItems": 25,
      -        "minItems": 1,
      -        "type": "array"
      -      },
      -      "limit": {
      -        "default": 50,
      -        "description": "Maximum returned companies and underlying positions; tails retain omitted weight.",
      -        "maximum": 100,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "locale": {
      -        "default": "en",
      -        "enum": [
      -          "de",
      -          "en",
      -          "es",
      -          "it",
      -          "fr",
      -          "nl",
      -          "cs",
      -          "pl",
      -          "ru",
      -          "uk"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "basis",
      -      "holdings"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "baseCurrency": {
      +        "default": "EUR",
      +        "description": "Currency for all values; defaults to EUR.",
      +        "pattern": "^[A-Za-z]{3}$",
      +        "type": "string"
      +      },
      +      "basis": {
      +        "const": "weights",
      +        "default": "weights",
      +        "description": "Sizes are fractions summing to 1.",
      +        "type": "string"
      +      },
      +      "holdings": {
      +        "description": "Investor-supplied securities or cash positions.",
      +        "items": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "isin": {
      +                  "description": "Investor-supplied ISIN; trimmed and uppercased.",
      +                  "pattern": "^[A-Z]{2}[A-Z0-9]{9}[0-9]$",
      +                  "type": "string"
      +                },
      +                "weight": {
      +                  "description": "Share of the entire submitted portfolio: 0.6 means 60%.",
      +                  "exclusiveMinimum": 0,
      +                  "maximum": 1,
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "isin",
      +                "weight"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "assetClass": {
      +                  "const": "cash",
      +                  "description": "Identifies a cash position.",
      +                  "type": "string"
      +                },
      +                "currency": {
      +                  "description": "Cash denomination.",
      +                  "pattern": "^[A-Za-z]{3}$",
      +                  "type": "string"
      +                },
      +                "weight": {
      +                  "description": "Share of the entire submitted portfolio: 0.6 means 60%.",
      +                  "exclusiveMinimum": 0,
      +                  "maximum": 1,
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "assetClass",
      +                "currency",
      +                "weight"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "maxItems": 25,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "limit": {
      +        "default": 50,
      +        "description": "Maximum returned companies and underlying positions; tails retain omitted weight.",
      +        "maximum": 100,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "locale": {
      +        "default": "en",
      +        "description": "Language for explanations; defaults to en.",
      +        "enum": [
      +          "de",
      +          "en",
      +          "es",
      +          "it",
      +          "fr",
      +          "nl",
      +          "cs",
      +          "pl",
      +          "ru",
      +          "uk"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "holdings"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "baseCurrency": {
      +        "default": "EUR",
      +        "description": "Currency for all values; defaults to EUR.",
      +        "pattern": "^[A-Za-z]{3}$",
      +        "type": "string"
      +      },
      +      "basis": {
      +        "const": "values",
      +        "description": "Sizes are market values in baseCurrency.",
      +        "type": "string"
      +      },
      +      "holdings": {
      +        "description": "Investor-supplied securities or cash positions.",
      +        "items": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "isin": {
      +                  "description": "Investor-supplied ISIN; trimmed and uppercased.",
      +                  "pattern": "^[A-Z]{2}[A-Z0-9]{9}[0-9]$",
      +                  "type": "string"
      +                },
      +                "value": {
      +                  "description": "Market value already converted to baseCurrency. Never a native-currency amount.",
      +                  "exclusiveMinimum": 0,
      +                  "maximum": 100000000,
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "isin",
      +                "value"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "assetClass": {
      +                  "const": "cash",
      +                  "description": "Identifies a cash position.",
      +                  "type": "string"
      +                },
      +                "currency": {
      +                  "description": "Cash denomination.",
      +                  "pattern": "^[A-Za-z]{3}$",
      +                  "type": "string"
      +                },
      +                "value": {
      +                  "description": "Market value already converted to baseCurrency. Never a native-currency amount.",
      +                  "exclusiveMinimum": 0,
      +                  "maximum": 100000000,
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "assetClass",
      +                "currency",
      +                "value"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "maxItems": 25,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "limit": {
      +        "default": 50,
      +        "description": "Maximum returned companies and underlying positions; tails retain omitted weight.",
      +        "maximum": 100,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "locale": {
      +        "default": "en",
      +        "description": "Language for explanations; defaults to en.",
      +        "enum": [
      +          "de",
      +          "en",
      +          "es",
      +          "it",
      +          "fr",
      +          "nl",
      +          "cs",
      +          "pl",
      +          "ru",
      +          "uk"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "basis",
      +      "holdings"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / portfolio / description
      Added value: +"Supplied portfolio; same shape as analyze_holdings."
    • addedInput schema / properties / scenarioKeys / description
      Added value: +"One to five distinct historical scenarios to replay."
  3. Changed1 schema field changed
    • changedOutput schema / properties / analysis / properties / data / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "model": {
      -        "const": "approximate_sector_asset_class_shocks_currency_unknown",
      -        "type": "string"
      -      },
      -      "scenarios": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "approximate": {
      -              "const": true,
      -              "type": "boolean"
      -            },
      -            "change": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "dateFrom": {
      -              "format": "date",
      -              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      -              "type": "string"
      -            },
      -            "dateTo": {
      -              "format": "date",
      -              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      -              "type": "string"
      -            },
      -            "failure": {
      -              "anyOf": [
      -                {
      -                  "enum": [
      -                    "unresolved_holdings",
      -                    "unsupported_base_currency",
      -                    "missing_currency",
      -                    "missing_scenario_coverage"
      -                  ],
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "key": {
      -              "enum": [
      -                "gfc_2008",
      -                "covid_2020",
      -                "rate_hike_2022",
      -                "euro_crisis_2011",
      -                "dotcom_2000"
      -              ],
      -              "type": "string"
      -            },
      -            "methodology": {
      -              "type": "string"
      -            },
      -            "name": {
      -              "type": "string"
      -            },
      -            "positions": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "assetClass": {
      -                    "type": "string"
      -                  },
      -                  "cashCurrency": {
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "change": {
      -                    "type": [
      -                      "number",
      -                      "null"
      -                    ]
      -                  },
      -                  "currencyDecomposition": {
      -                    "enum": [
      -                      "unavailable",
      -                      "cash_denomination"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  "fxShockApplied": {
      -                    "type": [
      -                      "number",
      -                      "null"
      -                    ]
      -                  },
      -                  "isin": {
      -                    "anyOf": [
      -                      {
      -                        "pattern": "^[A-Z]{2}[A-Z0-9]{9}[0-9]$",
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "method": {
      -                    "enum": [
      -                      "sector_proxy",
      -                      "asset_class_proxy"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  "postValue": {
      -                    "anyOf": [
      -                      {
      -                        "minimum": 0,
      -                        "type": "number"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "preValue": {
      -                    "anyOf": [
      -                      {
      -                        "minimum": 0,
      -                        "type": "number"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ]
      -                  },
      -                  "returnFraction": {
      -                    "type": "number"
      -                  },
      -                  "weight": {
      -                    "maximum": 1,
      -                    "minimum": 0,
      -                    "type": "number"
      -                  }
      -                },
      -                "required": [
      -                  "isin",
      -                  "cashCurrency",
      -                  "weight",
      -                  "assetClass",
      -                  "returnFraction",
      -                  "fxShockApplied",
      -                  "currencyDecomposition",
      -                  "method",
      -                  "preValue",
      -                  "postValue",
      -                  "change"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "postValue": {
      -              "anyOf": [
      -                {
      -                  "minimum": 0,
      -                  "type": "number"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "preValue": {
      -              "anyOf": [
      -                {
      -                  "minimum": 0,
      -                  "type": "number"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "returnFraction": {
      -              "type": [
      -                "number",
      -                "null"
      -              ]
      -            },
      -            "reviewedAt": {
      -              "anyOf": [
      -                {
      -                  "format": "date",
      -                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "sources": {
      -              "description": "Source descriptions including URLs, preserved from the maintained scenario registry.",
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "status": {
      -              "enum": [
      -                "ok",
      -                "unavailable"
      -              ],
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "key",
      -            "name",
      -            "dateFrom",
      -            "dateTo",
      -            "status",
      -            "failure",
      -            "returnFraction",
      -            "preValue",
      -            "postValue",
      -            "change",
      -            "approximate",
      -            "methodology",
      -            "sources",
      -            "reviewedAt",
      -            "positions"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "model",
      -      "scenarios"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "model": {
      +        "const": "approximate_sector_asset_class_shocks_currency_unknown",
      +        "type": "string"
      +      },
      +      "scenarios": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "approximate": {
      +              "const": true,
      +              "type": "boolean"
      +            },
      +            "change": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "dateFrom": {
      +              "format": "date",
      +              "type": "string"
      +            },
      +            "dateTo": {
      +              "format": "date",
      +              "type": "string"
      +            },
      +            "failure": {
      +              "anyOf": [
      +                {
      +                  "enum": [
      +                    "unresolved_holdings",
      +                    "unsupported_base_currency",
      +                    "missing_currency",
      +                    "missing_scenario_coverage"
      +                  ],
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "key": {
      +              "enum": [
      +                "gfc_2008",
      +                "covid_2020",
      +                "rate_hike_2022",
      +                "euro_crisis_2011",
      +                "dotcom_2000"
      +              ],
      +              "type": "string"
      +            },
      +            "methodology": {
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            },
      +            "positions": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "assetClass": {
      +                    "type": "string"
      +                  },
      +                  "cashCurrency": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "change": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "currencyDecomposition": {
      +                    "enum": [
      +                      "unavailable",
      +                      "cash_denomination"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "fxShockApplied": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "isin": {
      +                    "anyOf": [
      +                      {
      +                        "pattern": "^[A-Z]{2}[A-Z0-9]{9}[0-9]$",
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "method": {
      +                    "enum": [
      +                      "sector_proxy",
      +                      "asset_class_proxy"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "postValue": {
      +                    "anyOf": [
      +                      {
      +                        "minimum": 0,
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "preValue": {
      +                    "anyOf": [
      +                      {
      +                        "minimum": 0,
      +                        "type": "number"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "returnFraction": {
      +                    "type": "number"
      +                  },
      +                  "weight": {
      +                    "maximum": 1,
      +                    "minimum": 0,
      +                    "type": "number"
      +                  }
      +                },
      +                "required": [
      +                  "isin",
      +                  "cashCurrency",
      +                  "weight",
      +                  "assetClass",
      +                  "returnFraction",
      +                  "fxShockApplied",
      +                  "currencyDecomposition",
      +                  "method",
      +                  "preValue",
      +                  "postValue",
      +                  "change"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "postValue": {
      +              "anyOf": [
      +                {
      +                  "minimum": 0,
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "preValue": {
      +              "anyOf": [
      +                {
      +                  "minimum": 0,
      +                  "type": "number"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "returnFraction": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "reviewedAt": {
      +              "anyOf": [
      +                {
      +                  "format": "date",
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "sources": {
      +              "description": "Source descriptions including URLs, preserved from the maintained scenario registry.",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "status": {
      +              "enum": [
      +                "ok",
      +                "unavailable"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "key",
      +            "name",
      +            "dateFrom",
      +            "dateTo",
      +            "status",
      +            "failure",
      +            "returnFraction",
      +            "preValue",
      +            "postValue",
      +            "change",
      +            "approximate",
      +            "methodology",
      +            "sources",
      +            "reviewedAt",
      +            "positions"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "model",
      +      "scenarios"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, and the description adds genuinely new context: no sign-in is required and the response includes methods, sources and missing-coverage flags. That tells the agent the output can be partially incomplete, which annotations alone would not reveal.

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?

Four short sentences, front-loaded with the core purpose, then the return shape, the scenario list and the sibling routing. Every sentence carries a distinct, useful payload.

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?

With an output schema present and full schema coverage, the description need not explain return values or parameter formats, and it covers sign-in, scenario coverage and the main alternative. The only residual gap is its relationship to the async stress-test job tools, which is left unaddressed.

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 weights-vs-values basis, limits, locale and ISIN patterns are all documented in the schema itself. The description's enumeration of scenario keys duplicates the scenarioKeys enum rather than adding interpretation, so the baseline 3 applies.

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 description names a specific verb and resource ("Estimate a named crisis's impact on supplied holdings") and states the mechanism (sector and asset-class shocks). It also explicitly distinguishes itself from backtest_holdings, so an agent can separate the two without opening either schema.

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

Usage Guidelines4/5

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

It gives a clear usage rule: use this for supplied holdings, use backtest_holdings for a strategy's historical path. It does not address when to prefer synchronous evaluation here versus the job-style siblings start_stress_test/get_stress_test, so routing against those remains inferential.

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.