Skip to main content
Glama

Algofinix Quant Desk — Blind Swarm, Trade Audit & Portfolio VaR

Portfolio Crash Stress-Test & Hedge Architect

stress_test_portfolio_hedge
Read-onlyIdempotent

Costs 2 credits. Stress-tests any equity/ETF portfolio across market crash scenarios (e.g. -5%, -10%, -15%, -20%), computes portfolio beta and HHI concentration risk, and generates concrete dollar-impact hedge actions enforcing a strict 25% max-trim guardrail. LLM EXTRACTION RULE: If the user shares a portfolio screenshot, table, or plain English holdings (e.g. '$50k NVDA, $30k QQQ, $20k cash'), extract positions and call this tool directly.

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": {
      "positions": "<positions>"
    },
    "name": "stress_test_portfolio_hedge"
  }
}

Input Schema

NameRequiredDescriptionDefault
cashNo
positionsYes
risk_toleranceNo0.0 = maximum protection, 1.0 = aggressive risk tolerance.
strategy_styleNoOptional hedge philosophy.
scenario_shocksNoMarket drop shocks as decimals (0.10) or whole percentages (10).
prefer_deterministicNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the description's job is to add what they cannot. It does exactly that: a concrete credit price (2 credits), the 25% max-trim guardrail that constrains generated hedge actions, and the presence of a deterministic mode. An agent knows both the cost and the safety envelope before calling.

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 cost is front-loaded, the capability sentence follows, and the extraction rule is a clearly labeled final instruction. Each element earns its place. Minor redundancy between the scenario examples in prose and the schema default, but it is short overall.

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 no output schema, the description carries the burden of describing results, and it does so at a high level: per-scenario dollar impact, beta, HHI, and hedge actions. What it omits is the shape/format of the returned plan and how the 25% trim limit is applied per position. Given a 6-parameter analytic tool, this is close to complete but not exhaustive.

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 50%, and the description adds meaning mainly for `positions` (via the '$50k NVDA, $30k QQQ, $20k cash' example, which shows market_value and cash usage) and for `scenario_shocks` (via the enumerated -5%/-10%/-15%/-20% shocks matching the defaults). It says nothing about `risk_tolerance`, `strategy_style`, or `prefer_deterministic`, leaving three parameters explained only by schema strings.

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 names specific verbs and resources: stress-testing an equity/ETF portfolio across crash scenarios, computing beta and HHI concentration, and generating dollar-impact hedge actions. That is far more informative than the title alone. Sibling tools (audit_trading_behavior, check_algofinix_credits, run_blind_swarm) are unrelated, so the lack of explicit sibling differentiation costs little, but it is still absent.

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 concrete trigger: when the user shares a screenshot, table, or plain-English holdings, extract `positions` and call directly, complete with an example ('$50k NVDA, $30k QQQ, $20k cash'). It also surfaces the 2-credit cost up front so the agent can weigh invocation. It does not state when NOT to use it or name alternatives for adjacent needs such as trade-behavior auditing.

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