Skip to main content
Glama

Pre-trade risk gate: approve / reduce / reject an order against your own declared limits (PAID $0.25)

v1_pretrade_risk

Evaluates a proposed order against your own declared risk limits and returns approve, reduce, or reject before execution.

Instructions

Pre-trade risk gate: approve / reduce / reject an order against your own declared limits (PAID $0.25)

Remote route: POST /v1/pretrade/risk (0.25 USD x402/base/usdc on eip155:8453).

Input Schema

NameRequiredDescriptionDefault
as_ofNo
orderNo
limitsNo
accountNo
positionsNo

Output Schema

NameRequiredDescriptionDefault
statusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior3/5

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

The description adds genuinely useful context not in the annotations: the tool is paid ($0.25 USDC via x402 on eip155:8453) and routed as POST /v1/pretrade/risk. However, it does not clarify that the gate only evaluates and does not place the order, which matters given readOnlyHint=false and idempotentHint=false could be misread as execution. No mention of what a rejection returns or payment failure behavior.

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?

Two tight lines with the core purpose front-loaded and the paid-route detail kept to a separate short clause. No filler. The first line largely restates the title verbatim, which is the only redundancy.

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?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. But for a five-parameter risk-gate tool where every parameter is optional and undocumented, the description leaves an agent unable to construct a correct call — nothing on required inputs, limit semantics, or what happens if limits are omitted.

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

Parameters2/5

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

Schema description coverage is 0% and the description says nothing about any of the five parameters. Critical ambiguities go unaddressed: all parameters are optional (required=0), 'as_of' is an empty-string-default string with unexplained semantics, and the limits/account/positions structures have no field-level meaning given. The description does not compensate for the coverage gap.

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?

States a specific verb+resource+outcome: a pre-trade risk gate that approves, reduces, or rejects an order against caller-declared limits. An agent knows exactly what the call computes. It never names a sibling alternative (e.g. v1_portfolio_risk or v1_policy_check), so differentiation is left to inference.

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 statement of when to call this versus related siblings like v1_portfolio_risk, v1_policy_check, or v1_mandate_compliance. The phrase 'against your own declared limits' implies limits must be supplied, but there is no guidance on preconditions, ordering, or when not to use it.

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

Deploy Server

Other Tools