Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_hl_settle_pending

Clear a pending HyperLiquid cloid from a vault adapter's pendingActions map on HyperEVM after the required settle delay. The call is permissionless and cannot move funds.

Instructions

Clear a pending HyperLiquid cloid from the vault adapter's pendingActions map. Permissionless on-chain (signer does NOT need to be the vault manager), but gated by MIN_SETTLE_DELAY_BLOCKS=5 — the on-chain call reverts with HL__SettleTooEarly if too few blocks have passed since the action was registered. Cannot move funds. 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>",
      "cloid": "<cloid>"
    },
    "name": "factor_hl_settle_pending"
  }
}

Input Schema

NameRequiredDescriptionDefault
cloidYesPending cloid to settle — uint128 hex. Accepts 16-byte (0x + 32 hex) for CoreWriter-dispatched orders OR 32-byte (0x + 64 hex) for L1-signed orders; only the low 128 bits are used on-chain.
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 mostly succeeds: it discloses the permissionless auth model, the exact revert error and its trigger, the explicit safety property that funds cannot move, and the chain restriction. It leaves out what happens when the cloid is not present in the map (no-op vs. revert) and what the call returns, which matters for a mutation with no output schema.

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 tight sentences, front-loaded with the action and its target, then the auth gate, failure mode, safety bound, and chain scope. No filler and nothing buried.

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 mutation tool with zero annotation coverage and no output schema, the description covers the important gaps: authorization, preconditions, error behavior, and risk. The remaining hole is return/result semantics and idempotency, which an agent would otherwise have to discover by trial.

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 explains cloid encoding, vault address, and the optional password. The description adds the framing that the cloid is 'pending' and tied to pendingActions, but no format or usage 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?

States a specific verb and resource: clearing a pending HyperLiquid cloid from the vault adapter's pendingActions map. It is precise about what is modified, but never differentiates itself from the closely related sibling factor_hl_force_forget_cloid, which an agent could reasonably confuse it with.

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?

Gives clear preconditions for use: permissionless, requires MIN_SETTLE_DELAY_BLOCKS=5 blocks to have elapsed, HyperEVM chain 999 only. It does not, however, name an alternative tool or state when a caller should prefer a different approach (e.g., force-forget) instead.

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