Skip to main content
Glama

quant_order_guard

Enforces host-pinned notional caps, leverage ceilings, and daily drawdown kill-switches for OMS/exchange orders, blocking risky trades before signing over TLS 1.3.

Instructions

OMS / exchange signer-proxy risk guard enforcing host-pinned notional cap, leverage ceiling, and host-ledger daily drawdown kill-switch over TLS 1.3

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": {
      "symbol": "<symbol>",
      "side_code": "<side_code>",
      "notional_usd_cents": "<notional_usd_cents>",
      "leverage_bps": "<leverage_bps>"
    },
    "name": "quant_order_guard"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYes
side_codeYes
leverage_bpsYes
notional_usd_centsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.2/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden, yet it omits whether this is a mutating operation, what happens when a limit is breached (rejection vs clamping vs kill-switch trip), whether state changes persist in the host ledger, and what auth/credentials are required. The TLS 1.3 and 'signer-proxy' details imply a security model but say nothing an agent can act on at call time.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single front-loaded sentence with no padding, which is structurally efficient. But it is packed with jargon ('host-pinned', 'host-ledger') and includes the operationally irrelevant 'over TLS 1.3' while omitting the core action, so density comes at the cost of clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with four required parameters, no annotations, no output schema, and 0% schema coverage — likely a state-changing order path — the definition is far short of what an agent needs. Nothing explains the verdict/return, failure behavior, or the meaning of the coded side parameter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across four required parameters. The description only loosely gestures at two of them (notional_usd_cents via 'notional cap', leverage_bps via 'leverage ceiling') and says nothing about 'symbol' or the critical 'side_code' integer, whose buy/sell mapping is completely undocumented. It fails to compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific domain and resource ('OMS / exchange signer-proxy risk guard') and enumerates the constraints it enforces (notional cap, leverage ceiling, daily drawdown kill-switch). However, it never states the actual action the agent performs — whether this submits an order, pre-validates one, or only returns a risk verdict — so the verb is inferred rather than given.

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?

There is no when-to-use or when-not-to-use guidance, no prerequisites, and no distinction from the sibling guard tools (capped_refund_guard, github_devops_guard). The agent must guess whether this is a pre-trade check or the order-execution path itself.

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