Skip to main content
Glama
abuaz01

trclient-mcp

by abuaz01

preview_order

Read-only

Validate an order and check it against safety guardrails before placing it, returning a single-use confirmation ID for a dry-run preview.

Instructions

Validate an order and check it against the guardrails WITHOUT sending it.

size is the number of units (fractions allowed). limit_price is required for order_type=limit, stop_price for stopMarket. expiry gtd needs expiry_date (YYYY-MM-DD). Market orders only support expiry gfd. Returns a single-use confirmation_id for place_order.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
isinYes
sideYes
sizeYes
expiryNogfd
exchangeNo
order_typeNomarket
stop_priceNo
expiry_dateNo
limit_priceNo
sell_fractionsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces 'WITHOUT sending it' without contradicting anything. It adds useful behavioral detail: guardrail validation, single-use confirmation_id, and expiry/order-type constraints, going beyond the annotation coverage.

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 four tight sentences with the core behavior front-loaded first. Every sentence adds a distinct piece of information: non-sending behavior, parameter rules, and the produced confirmation_id. No filler exists.

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 10-parameter validation tool, the description covers the main conditional relationships needed to form a valid call. It does not explain exchange or sell_fractions semantics, but these are reasonably inferable from the schema, and the output schema handles return details. The description is strong enough for an agent to invoke correctly in most scenarios.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate. It does for the most confusing parameters: size allows fractions, limit_price is required for limit, stop_price for stopMarket, expiry gtd needs expiry_date, and market orders only support gfd. A few self-explanatory params (isin, side, exchange, sell_fractions) are left to the schema, but the critical conditional semantics are covered.

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 states a clear verb ('Validate an order') and resource, and explicitly contrasts with sending it via place_order. It also names the output artifact (single-use confirmation_id), making the tool's role unmistakable.

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?

The description makes the intended usage obvious: validate against guardrails without sending, then use the returned confirmation_id with place_order. It does not explicitly list when not to use it, but the context strongly implies it is the pre-send check sibling to place_order.

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