Skip to main content
Glama

Causal Portfolio Defensive Posture Classifier

warden.defensive_posture
Read-onlyIdempotent

Classifies portfolio risk posture and computes a risk-scale multiplier, stop-tightening factor, and stop-heat cap from volatility, efficiency, and drawdown stress to guide defensive exposure.

Instructions

Classifies portfolio risk posture into Normal, Cautious, Defensive, or CrisisShield.

Uses trailing volatility, efficiency ratio, and drawdown stress to compute the recommended risk-scale multiplier (1.00x down to 0.20x), stop-tightening factor (1.00x down to 0.55x), and effective portfolio stop-heat cap. Pure risk governance.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "warden.defensive_posture"
  }
}

Input Schema

NameRequiredDescriptionDefault
efficiency_ratio_20dNoTrailing 20-day Kaufman efficiency ratio in [0.0, 1.0].
realized_vol_20d_pctNoTrailing 20-day annualized realized volatility in percent.
account_daily_pnl_pctNoCurrent account daily PnL in percent.
base_max_stop_heat_pctNoBaseline maximum aggregate portfolio stop-heat percentage.
benchmark_return_1d_pctNoTrailing 1-day benchmark return in percent (e.g. -1.25 for -1.25%).
benchmark_return_5d_pctNoTrailing 5-day benchmark return in percent.
open_unrealized_pnl_pctNoCurrent open portfolio unrealized PnL in percent.

Output Schema

NameRequiredDescriptionDefault
howNo
toolNo
errorNo
accessNo
safetyNo
postureNo
reasonsNo
telemetryNo
provenanceNo
request_access_atNo
risk_scale_multiplierNo
stop_tightening_factorNo
downward_selloff_activeNo
defensive_rotation_activeNo
effective_stop_heat_cap_pctNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.1

TDQS

A3.7/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 closed-world, so the safety profile is covered. The description adds genuinely new behavioral context beyond that: the concrete output ranges (risk-scale multiplier 1.00x down to 0.20x, stop-tightening 1.00x down to 0.55x) and the derived stop-heat cap, which tell the agent what magnitude of output to expect and that the tool never mutates state itself.

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 output classes are front-loaded in the first sentence, followed by the input drivers and then the output ranges, which is a sensible order for an agent. The text is short and mostly earns its place, with only 'Pure risk governance' being a slightly vague closer.

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, the description does not need to detail return values, and all seven parameters are fully documented in the schema. What is missing is minor: it never states that every parameter is optional with sensible defaults, which matters for an agent deciding whether it can call the tool with partial inputs.

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 100%, so every parameter is already documented in the schema and the baseline of 3 applies. The description names three of the seven inputs (volatility, efficiency ratio, drawdown stress) and describes how they combine, but 'drawdown stress' is not a literal parameter and the benchmark-return and account-PnL inputs go unmentioned, so it adds only marginal meaning.

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 gives a specific verb ('Classifies') and resource ('portfolio risk posture') and enumerates the four possible output classes (Normal, Cautious, Defensive, CrisisShield), so an agent knows exactly what it produces. 'Pure risk governance' signals it is advisory rather than an execution tool, though no sibling is named to sharpen the distinction against warden.optimize_portfolio or warden.plan_rebalance.

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?

The inputs it reacts to (trailing volatility, efficiency ratio, drawdown stress) imply the context in which it is appropriate, and 'pure risk governance' hints it is the risk-assessment step rather than an action step. However, there is no explicit when-to-use, when-not-to-use, or named alternative among the warden siblings, leaving the agent to infer placement in a workflow.

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