Skip to main content
Glama
blink1217
by blink1217

Explain Sizing

warden.explain_sizing
Read-onlyIdempotent

Explains position sizing by mirroring risk-engine rules: ATR-based sizing, notional caps, overnight-gap halving, weekend headroom. Reports house floors and deviations for supplied overrides.

Instructions

Step-by-step mirror of the live C# risk engine sizing: ATR sizing, position-notional cap, overnight-gap halving, weekend gross headroom. Reports the house floors and any deviation when per-fund overrides are supplied.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
closeYesCurrent close/reference price.
atr_14Yes14-bar average true range of the instrument.
equityYesAccount equity (base currency).
overnight_gapNoExpected overnight gap (price units); gaps above 1.2x ATR halve size.
gross_exposureNoCurrent portfolio gross exposure in currency.
floor_overridesNoOptional per-fund overrides; deviation from house floors is reported.
weekend_approachingNoTrue when the position would be held into the weekend (gross headroom applies).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
howNo
qtyNo
toolNo
errorNo
stepsNo
accessNo
safetyNo
reasonsNo
verdictNo
notionalNo
provenanceNo
trail_stopNo
house_floorsNo
request_access_atNo
overrides_deviationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the safe read-only profile is covered. The description adds valuable behavioral context: it is a step-by-step mirror of the live engine, covers specific sizing rules, and reports house floors plus any deviation when per-fund overrides are supplied. No contradiction with annotations.

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?

Two sentences, front-loaded with the tool's core purpose, followed by a compact enumeration of the sizing components and the output behavior. Every phrase earns its place; there is no filler or repetition.

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 read-only explanatory tool with an output schema and fully documented parameters, the description provides enough context about the calculation components and updated behavior. It omits guidance on output shape, but that is handled by the output schema. The only meaningful gap is usage guidance versus siblings, which is captured in dimension 2.

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 does not add per-parameter detail beyond the schema, but it does connect parameters like atr_14, overnight_gap, and weekend_approaching to the algorithm narrative. It adds no new format, unit, or threshold information beyond what the schema already provides.

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 clearly identifies what the tool does: it mirrors the live C# risk engine sizing step-by-step and reports house floors and deviations. It names specific components (ATR sizing, position-notional cap, overnight-gap halving, weekend gross headroom), which makes the purpose concrete. It doesn't explicitly contrast with sibling tools, but the resource and behavior are distinct enough that an agent can infer its role.

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

Usage Guidelines2/5

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

No explicit guidance is given about when to use this tool versus siblings like warden.cost_check, validate_order, audit_features, validate_genome, or promotion_verdict. The description implies it is for explaining sizing calculations, but it does not state that explicitly, nor does it list exclusions or alternatives.

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