Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_hl_initialize_builder_dex

Diagnoses and initializes a Factor vault’s HyperLiquid user account on a HIP-3 builder dex, checks collateral, flags HIP-3 awareness, and reports credit or adapter funding limits.

Instructions

Diagnose + initialise a Factor vault's HyperLiquid user-account on a HIP-3 builder dex. Reads the dex's collateral-token (USDC=0, USDH=360, USDE=235, USDT0=268, ...), calls agentEnableDexAbstraction to flag the master as HIP-3-aware, and polls clearinghouseState for credit. Returns a structured report — if the dex uses non-USDC collateral, surfaces the requirement that the adapter's on-chain transferUsdcBetweenLedgers (hardcoded to USDC) cannot fund it without an adapter upgrade. 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>",
      "dexName": "<dexName>"
    },
    "name": "factor_hl_initialize_builder_dex"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaultYesVault contract address (HyperEVM).
dexNameYesHIP-3 builder dex name (e.g. "vntl", "xyz", "flx", "hyna", "km", "cash", "abcd", "para"). Discoverable via factor_hl_list_dexes (planned) or by inspecting HL's perpDexs Info endpoint.
passwordNoWallet password if encrypted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.9

TDQS

A4/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 so well: it discloses a state-changing on-chain call (agentEnableDexAbstraction), polling of clearinghouseState for credit, the chain restriction, and a concrete failure mode (non-USDC collateral cannot be funded because transferUsdcBetweenLedgers is hardcoded to USDC). It stops short of stating idempotency/re-run safety, auth requirements beyond the password param, or gas cost.

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?

The action sequence and the constraint are front-loaded into a single dense sentence, with the collateral caveat appended at the end where it belongs. It is information-dense rather than padded, though the middle clause chain (reads... calls... polls...) runs long and could be broken up for scanning.

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

Completeness5/5

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

For a 3-param tool with no output schema, the description covers the operation sequence, the side effect, the chain restriction, and the shape of the return ('a structured report' plus the conditional collateral warning). Combined with 100% schema coverage, an agent has what it needs to call this correctly.

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 all three params, establishing a baseline of 3. The description adds indirect meaning by explaining that the dex determines the collateral token (USDC=0, USDH=360, ..., USDE=235, USDT0=268), which tells the agent why dexName matters, but gives no new detail on vault or password.

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 pair and resource: 'Diagnose + initialise a Factor vault's HyperLiquid user-account on a HIP-3 builder dex.' The scope (builder dex, per-vault user account) clearly separates it from siblings like factor_hl_transfer_to_builder_dex or factor_hl_set_max_known_builder_dex.

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?

Provides a hard environment constraint ('HyperEVM (chain 999) only'), which is real usage guidance. However, it never states when this must be run relative to siblings — e.g. that initialisation is a prerequisite before the transfer_*_builder_dex or open_position tools — nor any exclusions. The sequencing is inferable but not stated.

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