Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Gloom. If you published it, claim ownership there.

Analyze portfolio scenario exposure

portfolio.exposure
Read-onlyIdempotent

Apply country, commodity, rates, FX, tariff, supplier or customer shocks to weighted holdings. Weights are signed NAV fractions. Returns ranges by operating denominator and period, every filing-backed evidence path, portfolio concentrations and what is unknown. Chained percentages and shock impacts are estimates, never stock-return predictions. Free preview analyzes one holding at depth one; Pro supports 100 holdings and four hops. Custom transmission assumptions must be explicit.

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": {
      "holdings": "<holdings>",
      "scenario": "<scenario>"
    },
    "name": "portfolio.exposure"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNo
holdingsYes
scenarioYes
cashWeightNo

Output Schema

NameRequiredDescriptionDefault
asOfNo
dataYes
statusYes
rowCountNo
truncatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "asOf": {
      +      "type": "string"
      +    },
      +    "data": {
      +      "type": "object"
      +    },
      +    "rowCount": {
      +      "type": "integer"
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "truncated": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "data"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, so the description earns credit for adding what they cannot: plan-tier limits (1 holding at depth 1 free vs 100 holdings and 4 hops on Pro) and the epistemic caveat that chained percentages and shock impacts are estimates, never stock-return predictions. It also warns that custom transmission assumptions must be explicit, which signals a failure mode. It does not disclose cost, latency, or what happens when a shock target cannot be resolved.

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?

The shock mechanism is front-loaded and every sentence carries content: inputs, weight convention, outputs, caveats, tier limits, and transmission constraints. The output sentence is a slightly awkward list ('and what is unknown'), and the return-value summary partially duplicates the output schema, but there is no filler.

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 nested scenario engine this covers the essentials: what a shock is, what a weight means, what the result expresses, how far the chain is trusted, and what the plan limits are. An output schema exists, so return values needn't be explained, and the description's summary of them is a bonus rather than a gap. The missing piece is the scenario object's internal structure (products, changeBps vs changePct, cashWeight) relative to the complexity of that nested schema.

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 description coverage is 0% on a deeply nested four-parameter schema, so the description carries real weight here. It clarifies signed NAV-fraction weights (matching the schema's weight note), maps 'depth one' / 'four hops' onto the depth parameter, and flags that transmission assumptions must be explicit. It says nothing about cashWeight, label/id, products, or the changeBps vs changePct choice, leaving most of the nested scenario object undocumented.

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 opens with a specific verb and resource: apply named shock types (country, commodity, rates, FX, tariff, supplier, customer) to weighted holdings, and it states what comes back (ranges by denominator/period, evidence paths, concentrations, unknowns). That is far more than a restatement of the name. It never explicitly contrasts itself with sibling tools such as portfolio.performance or portfolio.positions, which keeps it short of a 5.

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?

There is no explicit when-to-use / when-not-to-use guidance or named alternative, so the agent must infer that this is the scenario-shock tool rather than a plain performance or positions call. It does supply practical boundary guidance: free preview covers one holding at depth one while Pro supports 100 holdings and four hops, and custom transmission assumptions must be explicit. Those are constraints on correct use, not 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