Skip to main content
Glama

crashtestyourstrategy

IPS gate — planning-step constraint check (hard gate)

ips_gate
Read-onlyIdempotent

Check a portfolio against an Investment Policy Statement BEFORE accepting it — the planning step a proper process does FIRST (CFA). Provide holdings + IPS constraints (max_drawdown_tolerance as a fraction e.g. 0.15, time_horizon_years, liquidity_need 'low'|'medium'|'high'). Runs the stress test internally and flags where the proposal VIOLATES the stated policy: worst stress drawdown exceeds tolerance; a short horizon cannot absorb a deep drawdown; material holdings are less liquid than the stated need. A HARD GATE, not a score. Descriptive, not advisory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
holdingsYesPortfolio legs: list of {asset, weight} objects, e.g. [{'asset': 'SPY', 'weight': 0.6}, {'asset': 'TLT', 'weight': 0.4}]. Weights are normalised to sum to 1; assets must be in the substrate universe.
liquidity_needNo'low' | 'medium' | 'high' — violated when material holdings are less liquid than the stated need.
time_horizon_yearsNoInvestment horizon stated in the IPS; short horizons cannot absorb deep drawdowns.
max_drawdown_toleranceNoIPS drawdown tolerance as a fraction, e.g. 0.15 = a -15% maximum acceptable drawdown.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

TDQS

A4.5/5.0
Behavior5/5

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

The description goes well beyond annotations by disclosing that the stress test is run internally and explicitly lists the violation conditions (worst stress drawdown, short horizon, liquidity). It also clarifies the output nature ('A HARD GATE, not a score; Descriptive, not advisory'), which aligns with readOnlyHint and idempotentHint and adds context about the result framing.

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?

The description is compact—four sentences—and front-loaded with the core purpose. Each sentence contributes either the operation, input guidance, behavioral logic, or output characterization, with no redundancy or 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?

Given the output schema and annotations, the description fully covers the tool's behavior, including the internal stress test and the specific IPS violation checks. It also clarifies the hard-gate nature and the distinction from advisory tools, making it self-sufficient for an agent to select and invoke it correctly.

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 the baseline is 3. The description restates parameter examples and semantics already present in the schema (e.g., 'max_drawdown_tolerance as a fraction e.g. 0.15', liquidity_need values), and does not add meaningful new parameter-level detail beyond what the schema provides.

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 uses a specific verb phrase 'Check a portfolio against an Investment Policy Statement' and clearly states its role as a 'planning-step constraint check (hard gate)'. It distinguishes itself from siblings like run_stress_test and portfolio_stress_test by stating it is 'A HARD GATE, not a score' and by focusing on IPS compliance rather than general stress testing.

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 provides strong timing guidance ('BEFORE accepting it — the planning step a proper process does FIRST') and clarifies that it is 'Descriptive, not advisory', which implies it is not for generating recommendations. However, it does not explicitly name alternative tools or enumerate specific when-not-to-use scenarios, so it falls short of a full 5.

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.

TDQS

A4.1/5.0
Disambiguation4/5

Most tools target distinct resources/actions (regime introspection vs. portfolio stress vs. thesis management), but a few names like run_stress_test vs. portfolio_stress_test could cause confusion. Descriptions help clarify boundaries, but there is enough overlap to mark one point off.

Naming Consistency3/5

Names are mostly snake_case but mix verb_noun (get_dossier, run_stress_test) with noun phrases (factor_decomposition, market_regime_map). The verb style is inconsistent (get/list/run/describe/submit/challenge), though the pattern is readable. This falls between predictable and chaotic.

Tool Count4/5

16 tools is slightly above the typical 3-15 range, but the domain is broad (regime analysis, portfolio stress testing, strategy evaluation, feedback). Most tools are distinct and necessary; only a couple could be merged without loss of functionality.

Completeness4/5

The surface covers core workflows: discovering theses, stress-testing portfolios, analyzing regimes, evaluating strategy robustness, and collecting feedback. Minor gaps exist (e.g., no custom strategy builder, challenge_strategy only supports buy-and-hold), but these are explicitly noted as future work.