Skip to main content
Glama

arena_preview_order

Simulates an order before placement to estimate fills, fees/rebates, and pre/post margin impact without mutating balances, books, or WAL.

Instructions

Stateless dry-run order simulation via POST /order/preview (zero WAL, L3 book, or balance mutation). Returns estimated fills, resting lots, net fee/rebate, and pre/post Eigen-SPAN IMR/MMR/free margin.

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>"
    },
    "name": "arena_preview_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
stpNocancel_resting
tifNogtc
sideYes
symbolNo
mark_pegNo
qty_lotsNo
is_marketNo
market_idNo
price_usdNo
account_idNo
client_tagNo
oco_linkedNo
amount_baseNo
margin_spotNo
price_ticksNo
primary_pegNo
reduce_onlyNo
midpoint_pegNo
min_qty_lotsNo
trailing_pegNo
dark_midpointNo
auto_flip_ticksNo
auto_skew_ticksNo
post_only_slideNo
differential_usdNo
display_qty_lotsNo
jit_elastic_multNo
peg_offset_ticksNo
priority_fee_ppmNo
max_lifetime_wal_seqsNo
stp_decrement_and_cancelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.9.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and delivers the most important traits: statelessness, zero WAL/L3 book/balance mutation, and the exact outputs (estimated fills, resting lots, fees, pre/post IMR/MMR/free margin). It omits authentication/permission needs and error or rejection behavior, which prevents a 5.

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 dense sentence with no filler, front-loaded with the core identity (stateless dry-run) before the return details. Parenthetical constraints are compact and earn their place.

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

Completeness3/5

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

For a 31-parameter tool with no annotations and no output schema, the description does well on behavioral profile and return contents, which is the hardest part. However, it leaves the entire parameter surface undocumented and gives no guidance on relation to live-order siblings, so it remains incomplete for a tool this complex.

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 31 parameters, so the schema documents essentially nothing about semantics; the description compensates only by implying the parameters mirror a real order. Fields such as stp, tif, auto_flip_ticks, jit_elastic_mult, and priority_fee_ppm receive no explanation anywhere.

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?

"Stateless dry-run order simulation" states a specific verb (simulate) and resource (order) with a clear scope modifier (dry-run), which distinguishes it from arena_place_order and arena_modify_order by implication. It stops short of explicitly naming the sibling it contrasts with.

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?

The word "dry-run" implies you use this instead of placing a live order, but the description never states the when-to-use condition (e.g. preview before arena_place_order) or when not to use it. Usage is inferable but not explicit.

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