Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_hl_sync_position

Reconcile a vault's stored active perp index with the live HyperLiquid position after settlement. Syncs HyperEVM adapter registry state to on-chain truth without moving funds.

Instructions

Reconcile a vault's on-chain activePerpIndices for a single perp against the live HyperLiquid position (read via precompile). Permissionless: the signer does NOT need to be the vault manager. Cannot move funds — only mutates the adapter's internal registry. Use after settlement to converge stored state with HL truth. 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>"
    },
    "name": "factor_hl_sync_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
perpYesPerp symbol like "BTC", "ETH" — or the numeric HL perp index.
vaultYesVault contract address (HyperEVM).
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 supplied, the description carries the full burden and does well: it discloses that the call is permissionless (signer need not be the vault manager), that it cannot move funds and only mutates the adapter's internal registry, and that it is chain-restricted. It omits return behavior, idempotency, and cost/gas characteristics, so it does not reach a 5.

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?

Four short sentences, front-loaded with the action and object, then permissions, then safety boundary, then timing and chain. No sentence is redundant and nothing buries the key constraint.

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 state-mutating tool with no annotations and no output schema, the description supplies the critical decision inputs: permission model, fund-safety boundary, and chain restriction. It leaves return values and failure modes unspecified, but the essentials for correct invocation are present.

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 parameters, including the symbol-or-numeric-index dual form of perp. The description adds only the framing that reconciliation targets a single perp, which the schema already conveys, so the 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 gives a specific verb and resource: reconcile a vault's on-chain activePerpIndices against the live HyperLiquid position for one perp. Scope ('single perp') and mechanism ('read via precompile') are stated. It does not explicitly distinguish itself from nearby siblings such as factor_hl_settle_pending or factor_hl_get_positions, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear activation condition: 'Use after settlement to converge stored state with HL truth' and restricts itself to HyperEVM chain 999. There is no explicit when-not guidance and no sibling is named as the alternative, which keeps it below a 5.

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