Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_hl_transfer_from_builder_dex

Sweeps USDC from an HIP-3 builder-dex ledger back to a vault's main Hyperliquid perp ledger on HyperEVM, returning the executeByManager envelope needed to complete the transfer.

Instructions

Sweep USDC from an HIP-3 builder-dex ledger (e.g. xyz) back to the vault's main HL perp ledger. Inverse of factor_hl_transfer_to_builder_dex. HyperEVM (chain 999) only. Returns an on-chain executeByManager envelope (CoreWriter action 13).

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>",
      "dex": "<dex>",
      "usdcAmount": "<usdcAmount>"
    },
    "name": "factor_hl_transfer_from_builder_dex"
  }
}

Input Schema

NameRequiredDescriptionDefault
dexYesSource builder dex. Currently only "xyz" is supported.
vaultYesVault contract address (HyperEVM).
passwordNoWallet password if encrypted.
usdcAmountYesUSDC amount to transfer back in float dollars (e.g. "1.50" or 1.5).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.9

TDQS

A4.2/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; it does disclose important behavior beyond the schema: the chain restriction, that the output is an on-chain executeByManager envelope (CoreWriter action 13) rather than an immediate broadcast, and the source-ledger semantics. It does not cover authority/permission requirements for the vault manager, failure modes, or whether the sweep is atomic.

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, each load-bearing: direction first, sibling relationship second, environment constraint third, return artifact last. No filler or repetition of the schema.

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?

No output schema exists, and the description compensates by naming the returned envelope type and action code; with fully documented parameters and only four of them, the remaining gap is auth/permission behavior. Slightly more on vault-manager authorization would make it complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description still adds meaning by naming the dex example 'xyz' as the source and clarifying that usdcAmount is denominated in dollars moving back to the perp ledger, reinforcing the directionality the schema alone doesn't convey.

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 and resource ('Sweep USDC from an HIP-3 builder-dex ledger back to the vault's main HL perp ledger') and explicitly frames itself as the inverse of the named sibling factor_hl_transfer_to_builder_dex, so an agent can pick it over that sibling without inspecting either schema.

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?

The direction of movement plus the 'inverse of' framing gives a clear condition for choosing this tool over the to_builder variant, and the 'HyperEVM (chain 999) only' constraint rules out other contexts. It stops short of stating prerequisites (initialized builder dex, sufficient balance) or explicit when-not guidance.

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