Skip to main content
Glama

preview_order

Read-only

Use this BEFORE place_order whenever the user wants to open a position: it validates and sizes the order (fresh est. entry, size after rounding, est. liquidation, TP/SL sanity, MCP caps) WITHOUT placing anything, and shows a proposal card the user can confirm from. Read-only and always safe to call. If the user confirms, call place_order with the same arguments.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sideYesPosition direction
symbolYesHyperliquid perp coin symbol, e.g. BTC, ETH, SOL (not BTCUSDT)
leverageNoLeverage multiplier
stop_lossNoStop-loss trigger price
margin_usdYesUSDC margin to commit. Position notional = margin × leverage
order_typeNoExecution typemarket
limit_priceNoRequired when order_type is limit
margin_modeNoMargin modecross
take_profitNoTake-profit trigger price

TDQS

A4.5/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is known. The description adds valuable behavioral context beyond that: it validates and sizes the order (fresh est. entry, size after rounding, est. liquidation, TP/SL sanity, MCP caps) and shows a proposal card. This is useful context without contradicting the 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?

The description is two dense sentences with no filler. It front-loads the most important usage instruction ('Use this BEFORE place_order...') and puts the safety note ('Read-only and always safe to call') near the end. Every phrase earns its place.

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

Completeness5/5

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

For a tool with 9 parameters, no output schema, and no nested objects, the description covers all essential context: when to call it, what it does, what it doesn't do, and what happens next. The proposal card is described, and the follow-up path to place_order is explicit. An agent has everything needed to invoke it correctly.

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 all 9 parameters already have descriptions in the schema. The tool description adds no parameter-specific meaning beyond saying that the same arguments should be passed to place_order. Per the calibration baseline, 3 is appropriate when the schema carries the semantic load.

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 names a specific action (preview an order before placement) and a specific resource (the order being opened). It explicitly differentiates itself from place_order by stating it 'validates and sizes the order' and does so 'WITHOUT placing anything'. This makes the tool's role unambiguous among its siblings.

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

Usage Guidelines5/5

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

The description gives an explicit directive: 'Use this BEFORE place_order whenever the user wants to open a position'. It also provides the follow-up action ('If the user confirms, call place_order with the same arguments'), making the workflow clear. No alternative or exclusion is left ambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.3/5.0
Disambiguation5/5

Each tool maps to a distinct resource/action: market data, account state, resting orders, audit records, fills, order placement, and risk management. The only close pair, preview_order and place_order, is clearly delineated as validation vs execution.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern (get_, place_, cancel_, close_, set_). The object names are uniform and predictable, making the set easy to navigate.

Tool Count5/5

13 tools is well-scoped for a trading server: market data, account/order queries, execution, and position risk each have coverage without redundancy or bloat.

Completeness4/5

The surface covers the core trading lifecycle: market data, account, preview/place/cancel, close position, TP/SL, and historical records. Minor gaps exist (e.g., no modify-order operation and no standalone position detail endpoint), but agents can work around them via cancel/replace and get_my_account.

Resources