Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_hl_open_position

Open long or short HyperLiquid perpetual positions sized in USD through a Factor vault on HyperEVM, routing main-dex symbols on-chain and HIP-3 builder-dex symbols off-chain.

Instructions

Open a HyperLiquid perp position (long or short) sized in USD through a Factor vault on HyperEVM (chain 999). Main-dex symbols (BTC, ETH, ...) route on-chain via the HL adapter; HIP-3 builder-dex symbols (xyz:GOLD, xyz:BRENTOIL, xyz:COPPER, xyz:AAPL, ...) route off-chain via the HL Exchange API.

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>",
      "side": "<side>",
      "sizeUsd": "<sizeUsd>"
    },
    "name": "factor_hl_open_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
perpYesPerp symbol. Main dex: "ETH", "BTC", "SOL". Builder dex (HIP-3): "xyz:GOLD", "xyz:BRENTOIL", "xyz:COPPER", "xyz:AAPL", etc.
sideYesPosition direction.
vaultYesVault contract address (HyperEVM).
sizeUsdYesNotional size in USD (float dollars, e.g. 250.50 = $250.50).
passwordNoWallet password if encrypted.
slippageBpsNoMax slippage in basis points (0-10000). Default 1000 (10%).

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 behavioral burden; it does disclose a meaningful trait beyond the schema — the split between on-chain adapter routing and off-chain Exchange API routing, plus the chain id. It does not say whether the call signs and broadcasts a transaction, whether it waits for a fill, what permissions or API-wallet setup are required, or what happens on slippage breach, which is a notable gap for an irreversible position-opening mutation.

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?

Two tight sentences with zero filler; the core action and chain are front-loaded, and the routing rule follows immediately. Slightly dense use of ellipses and dex jargon costs a point on immediate readability but nothing is wasted.

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 6-parameter mutation with no annotations and no output schema, the definition covers routing and chain but omits execution semantics (compile vs. send), prerequisites, and failure behavior. An agent knows what the tool does and which symbols it accepts, but not what it needs set up beforehand.

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 the schema already documents perp symbol formats, side enum, vault address, sizeUsd notional, password, and slippageBps default. The description reinforces that size is USD-denominated notional and restates the symbol taxonomy, but adds no syntax or format detail beyond the schema. Baseline 3 applies.

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 states a specific verb and resource ('Open a HyperLiquid perp position (long or short) sized in USD through a Factor vault on HyperEVM') and scopes it to chain 999. It does not differentiate itself from close-siblings like factor_hl_compile_open or factor_hl_place_order_raw, so an agent cannot tell from the text alone whether this compiles, signs, or broadcasts the trade.

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 through the routing rules: main-dex symbols go on-chain via the HL adapter, HIP-3 builder-dex symbols go off-chain via the Exchange API. However, there is no explicit statement of when to choose this over factor_hl_compile_open or factor_hl_place_order_raw, and no prerequisites (API wallet registration, vault authorization) are listed.

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