Skip to main content
Glama

order_preview

Preview a what-if order before sending to see estimated commission, margin impact, and equity with loan, validating cost and risk without placing it.

Instructions

Preview/what-if an order: see estimated commission, margin impact, equity with loan before actually sending.

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": {
      "side": "<side>",
      "quantity": "<quantity>",
      "orderType": "<orderType>"
    },
    "name": "order_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
tifNo
sideYes
conIdNo
symbolNo
secTypeNo
auxPriceNo
currencyNo
exchangeNo
quantityYes
orderTypeYes
limitPriceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the most important behavioral trait — this is a simulation that does not send the order — and lists the estimates returned. However it omits permission/auth requirements, whether market data subscriptions are needed, and error behavior for invalid contracts.

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?

A single front-loaded sentence with no filler, leading with the verb and the safety-relevant 'before actually sending' clause. Slightly dense — it packs both the action and three output types into one line without structure.

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 an 11-parameter trading tool with no annotations, no output schema and zero schema descriptions, the definition is thin. It never explains the order parameters, which are the hardest part of invoking it correctly, and says nothing about what the preview response looks like structurally.

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% across 11 parameters, so the description must compensate and does not. Fields like tif, auxPrice, conId, secType and limitPrice get no explanation of meaning, format, or which combinations are valid for which orderType.

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 ('Preview/what-if') plus the resource ('an order') and enumerates the concrete outputs: estimated commission, margin impact, equity with loan. It implicitly differentiates from order_place via 'before actually sending', though no sibling is named.

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

Usage Guidelines3/5

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

'before actually sending' gives a clear usage cue for a pre-trade check, but only by implication. There is no explicit when-not guidance, no named alternative (e.g. order_place), and no stated prerequisites such as a live connection or valid contract.

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