Skip to main content
Glama

FeraTerra Sovereign CLOB & Quant Execution MCP

Preview Order (Dry-Run Simulation)

arena_preview_order
Read-onlyIdempotent

Run a stateless, zero-mutation order simulation via POST /order/preview (never mutates WAL, L3 book, or balances; supports account_id=0 anonymous zero-key preview as well as authenticated Eigen-SPAN IMR/MMR/free-margin checks). Always call this to verify fill price, net fee/rebate, and margin impact before calling arena_place_order to execute live. Provide mutually exclusive market (symbol vs market_id), price (price_usd, price_ticks, or SpreadBook differential_usd), and size (amount_base vs qty_lots) fields.

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
stpNoSimulated Self-Trade Prevention mode against same-account resting orders.cancel_resting
tifNoSimulated time-in-force policy: 'gtc', 'ioc', 'fok', or 'post_only'.gtc
sideYesSimulated order direction: 'buy'/'bid' or 'sell'/'ask'.
symbolNoUnified or native market symbol (e.g. 'BTC/USD:USD', 'BTC/USD', or 'BTC-USD-PERP'); mutually exclusive with market_id.
mark_pegNoWhen true, simulates an oracle/index mark-price pegged order plus peg_offset_ticks.
qty_lotsNoSimulated order size in fixed-point integer lots (1 lot = 1e-4 base, minimum 1); mutually exclusive with amount_base.
is_marketNoWhen true, simulates an immediate market order sweep (defaults tif to 'ioc').
market_idNoNumeric Arena market identifier (>= 1); mutually exclusive with symbol.
price_usdNoSimulated limit price in exact USD decimal string or number (e.g. '50000.00', multiple of $0.01); mutually exclusive with price_ticks and differential_usd.
account_idNoAccount ID for simulation (0 = anonymous zero-key preview without credentials; >= 1 = simulate against account's live Eigen-SPAN portfolio; defaults to session account or 0 when unauthenticated).
client_tagNoOptional unsigned strategy/OCO client tag (0 = untagged).
oco_linkedNoWhen true, simulates OCO bracket validation alongside client_tag.
amount_baseNoSimulated order size in exact base units (e.g. '0.1000', multiple of 1e-4); mutually exclusive with qty_lots.
margin_spotNoWhen true on a Spot market, simulates cross-margined Spot execution under Eigen-SPAN.
price_ticksNoSimulated limit price in fixed-point integer ticks (1 tick = $0.01; 0 allowed for market/pegged orders); mutually exclusive with price_usd and differential_usd.
primary_pegNoWhen true, simulates a primary same-side BBO pegged order plus peg_offset_ticks.
reduce_onlyNoWhen true, simulates a strict position-reducing order.
midpoint_pegNoWhen true, simulates a BBO midpoint pegged order plus peg_offset_ticks.
min_qty_lotsNoMinimum immediate fill quantity in integer lots (1 lot = 1e-4 base, 0 = no minimum).
trailing_pegNoWhen true, simulates a one-way ratcheting trailing pegged order.
dark_midpointNoWhen true, simulates a non-displayed dark-midpoint order.
auto_flip_ticksNoSimulated passive counter-order flip distance in ticks (0..500, 1 tick = $0.01, 0 = disabled).
auto_skew_ticksNoSimulated inventory-skew step in integer ticks (0..500, 1 tick = $0.01, 0 = disabled).
post_only_slideNoWhen true, simulates passive 1-tick BBO sliding if the order would cross resting liquidity.
differential_usdNoSigned USD spread differential relative to $10,000.00 par (e.g. '-5.25') for SpreadBook markets only; mutually exclusive with price_usd and price_ticks.
display_qty_lotsNoSimulated visible iceberg clip size in integer lots (1 lot = 1e-4 base, 0 = full size displayed).
jit_elastic_multNoSimulated elastic liquidity / dynamic iceberg reload multiplier (0..50, 0 or 1 = standard).
peg_offset_ticksNoSigned tick offset (-500..500, 1 tick = $0.01) applied to pegged reference price.
priority_fee_ppmNoSimulated priority fee bid in parts-per-million of notional (0..50000 ppm, 0 = none).
max_lifetime_wal_seqsNoSimulated Good-Til-Sequence auto-expiry lifetime in WAL sequences (0..65535, 0 = none).
stp_decrement_and_cancelNoWhen true, simulates decrement-and-cancel self-trade prevention.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the description is not carrying the safety burden alone; nonetheless it adds real specifics — no mutation of WAL, L3 book, or balances, and an anonymous zero-key path via account_id=0 that needs no credentials, versus authenticated Eigen-SPAN IMR/MMR checks. It does not describe what the simulation response contains or how simulation failures are surfaced, which keeps it short of 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?

Three sentences, front-loaded with the zero-mutation guarantee and the endpoint before the parameter grouping. The long parenthetical about anonymous versus authenticated preview is dense but still on-topic; nothing is padding, though the comma-heavy phrasing makes the exclusivity rules slightly harder to parse than a short bulleted grouping would.

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 31-parameter tool with no output schema, the description covers the essentials: it is side-effect free, requires only side, offers an unauthenticated path, and tells the agent what to verify (fill price, fees, margin). What it omits is calling out that errors on conflicting exclusive fields are likely, and any hint of the preview payload shape.

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 coverage is 100%, so the baseline is 3; the description earns above that by grouping 31 parameters into three mutually exclusive families (market: symbol vs market_id; price: price_usd vs price_ticks vs differential_usd; size: amount_base vs qty_lots), a cross-field constraint the per-parameter descriptions only state piecemeal. It does not explain the many behavior flags (pegs, STP, auto_flip), but the schema covers those individually.

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?

States a specific verb and resource ('stateless, zero-mutation order simulation') plus the underlying endpoint POST /order/preview, and explicitly contrasts itself with the executing sibling arena_place_order. An agent can immediately tell this is a dry-run rather than a live order submission.

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?

Gives an explicit directive workflow: 'Always call this to verify fill price, net fee/rebate, and margin impact before calling arena_place_order to execute live.' It also names the alternative (arena_place_order) and the condition that separates the two, which is exactly the routing information an agent needs.

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.