Skip to main content
Glama

preview_pair_order

Preview (dry-run) of an arbitrage pair order: stock quantity and the Hyperliquid order it would send. Nothing is ever sent from this server. Hyperliquid side is priced on testnet (the default network), so its price can differ from mainnet

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": {
      "asset": "<asset>",
      "notionalKrw": "<notionalKrw>",
      "direction": "<direction>"
    },
    "name": "preview_pair_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
assetYesSMSN=Samsung Electronics, SKHX=SK hynix, HYUNDAI=Hyundai Motor, SKHY=SK hynix ADR (0.1 share), KR200=KOSPI 200, EWY=MSCI Korea ETF, KORU=3x Korea ETF
directionYesperp_short_stock_long = sell the Hyperliquid perp and buy the stock (the only direction retail can do without short-selling stock). Use net.direction from get_arbitrage
notionalKrwYesTrade size in KRW. get_arbitrage with the same notionalKrw shows the expected fill prices, slippage and net for this size

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / direction / description
      Added value: +"perp_short_stock_long = sell the Hyperliquid perp and buy the stock (the only direction retail can do without short-selling stock). Use net.direction from get_arbitrage"
  2. Changed1 schema field changed
    • addedInput schema / properties / notionalKrw / description
      Added value: +"Trade size in KRW. get_arbitrage with the same notionalKrw shows the expected fill prices, slippage and net for this size"
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it declares nothing is ever sent from the server and that Hyperliquid-side pricing comes from testnet by default and may diverge from mainnet. It stops short of stating whether the preview is side-effect-free against the stock leg or what happens if the notional is unhedgeable.

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 short sentences with the dry-run guarantee front-loaded and the pricing caveat last. Every sentence carries information, though the parenthetical "(dry-run)" slightly repeats "Preview."

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?

No output schema exists, so the description must convey return shape; it says the result includes stock quantity and the Hyperliquid order, but omits price, slippage, or fee details the agent would need to interpret the preview. Adequate but not complete for a preview tool with three required params.

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%, with enum values and definitions already fully documented, so the baseline is 3. The description adds only the framing of notionalKrw as trade size in KRW and the pairing with get_arbitrage for expected fills, which is modest added value.

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 ("Preview (dry-run) of an arbitrage pair order") and names what it returns (stock quantity and the Hyperliquid order it would send). An agent can distinguish it from get_arbitrage, which supplies the analysis rather than a per-order preview.

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?

Usage context is implied by "preview (dry-run)" and the testnet pricing note, but the description never states when to call this versus get_arbitrage or predict_open. The routing hint ("Use net.direction from get_arbitrage") lives in the schema, not the description.

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.