Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_hl_add_api_wallet

Registers a HyperLiquid API wallet (agent EOA) for a vault on HyperEVM, enabling the agent to sign off-chain EIP-712 actions on the vault's behalf.

Instructions

Register a HyperLiquid API wallet (agent EOA) for a vault via CoreWriter action 9. The agent is authorized to sign off-chain EIP-712 actions (setLeverage, addIsolatedMargin, etc.) on behalf of the vault. 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>",
      "agentEoa": "<agentEoa>",
      "slotName": "<slotName>"
    },
    "name": "factor_hl_add_api_wallet"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaultYesVault contract address.
agentEoaYesEOA address that will be authorized as the HL API wallet.
passwordNoWallet password if encrypted.
slotNameYesNamed slot for this agent. Use "default" for the unnamed HL slot (empty name on-chain).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.9

TDQS

A3.6/5.0
Behavior3/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 disclose key behavior: this is a registration/mutation, it goes through CoreWriter action 9, the agent gains signing authority over the vault, and it is restricted to HyperEVM chain 999. It omits important operational traits such as who may call it, required permissions, gas cost, whether registration is one-time or replaceable, and whether the agent can be revoked — significant for a privileged authorization grant.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the action and target, then the consequence (authorization scope), then the hard constraint (chain 999 only). No redundant or filler wording; every sentence adds information an agent needs.

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 4-parameter mutation tool with full schema coverage, no output schema, and no annotations, the description covers purpose, mechanism, consequence, and environment restriction, which is a solid baseline. It is only short of complete because the operational scope of the authorization it grants (duration, revocation, idempotency when a slot is already populated) is unstated.

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% and the enum parameter (slotName) is documented, including the meaning of "default" as the unnamed HL slot. The description adds no meaning beyond the schema — it does not explain the password parameter's role or how agentEoa relates to the vault beyond what the field descriptions already say, so the baseline 3 is appropriate.

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 gives a specific verb and resource ("Register a HyperLiquid API wallet (agent EOA) for a vault") plus the underlying mechanism (CoreWriter action 9), which is far more informative than the tool name alone. It does not explicitly contrast itself with the many sibling factor_hl_* tools or factor_wallet_setup, so it stops short of full sibling differentiation.

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 is only implied: the description explains that the registered agent gains authority to sign off-chain EIP-712 actions, which hints at when an agent would want this, and it states the HyperEVM chain 999 restriction. There is no explicit when-to-use statement, no ordering guidance relative to sibling tools (e.g. before running setLeverage/open_position), and no mention of alternatives or preconditions.

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