Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_hl_place_order_raw

Place HyperLiquid perpetual orders for a HyperEVM vault with explicit limit price, time-in-force, and reduce-only flags, routing main-dex symbols on-chain and builder-dex symbols via the exchange API.

Instructions

Advanced HyperLiquid placeOrder with explicit limit price, TIF (Ioc/Alo/Gtc), and reduceOnly. Main-dex symbols (BTC, ETH, ...) route on-chain via CoreWriter; HIP-3 builder-dex symbols (xyz:GOLD, ...) route off-chain via the HL Exchange API. Does NOT move funds to third parties — orders fill into the vault's own positions. HyperEVM (chain 999) only.

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": {
      "vault": "<vault>",
      "perp": "<perp>",
      "isLong": "<isLong>",
      "sizeUsd": "<sizeUsd>",
      "limitPxReal": "<limitPxReal>"
    },
    "name": "factor_hl_place_order_raw"
  }
}

Input Schema

NameRequiredDescriptionDefault
tifNoTime-in-force. Ioc=immediate-or-cancel, Alo=add-liquidity-only, Gtc=good-till-cancel. Default Ioc.
perpYesPerp symbol or index. Main dex: numeric (0) or symbol ("ETH"). Builder dex: qualified ("xyz:GOLD").
cloidNoOptional client order id — 0x + 32 hex chars (128 bits).
vaultYesVault contract address (HyperEVM).
isLongYestrue = buy/long, false = sell/short.
sizeUsdYesNotional size in USD (float dollars).
passwordNoWallet password if encrypted.
reduceOnlyNotrue = order only reduces an existing position. Default false.
limitPxRealYesLimit price in REAL USD (NOT 1e8 wire scale), e.g. 4250.5 for $4250.50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.9

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does useful work by stating orders fill into the vault's own positions and do not move funds to third parties, plus the on-chain/off-chain routing split and chain restriction. However, it omits whether authentication/password is required, order idempotency or cloid behavior, and what the caller receives on success or failure.

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 tight sentences with the core operation front-loaded, followed by routing behavior and the chain constraint. Almost no wasted wording; the only mild density issue is the compressed HIP-3 example syntax, which is nonetheless helpful.

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 nine-parameter mutation tool with no annotations and no output schema, the description covers routing, fund safety, and chain scope, which are the highest-risk ambiguities. It still leaves gaps around prerequisites (margin, leverage, API wallet), failure behavior, and return values that an agent would want before invoking a live order placement.

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 coverage is 100%, so all nine parameters are already documented in the schema — the baseline of 3 applies. The description reinforces the routing meaning of `perp` and the real-USD scale of `limitPxReal`, but that information is already present in the parameter descriptions, so little is added beyond the schema.

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?

The description names a specific verb and resource ("Advanced HyperLiquid placeOrder") and differentiates the two routing paths — main-dex symbols on-chain via CoreWriter vs HIP-3 builder-dex symbols off-chain via the HL Exchange API. It does not explicitly distinguish itself from siblings like factor_hl_open_position or factor_hl_compile_open, so an agent must infer when raw order placement is preferred over those higher-level entry points.

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 rather than stated: the routing and "HyperEVM (chain 999) only" notes tell the agent where it applies, but there is no explicit "use this instead of X" guidance against the many sibling order-placement tools. No prerequisites such as margin, leverage, or API-wallet setup are mentioned.

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