Skip to main content
Glama
Factor MCP Server

Factor MCP Server

Official
by FactorDAO

factor_hl_get_nav

Read a HyperLiquid-enabled vault's tri-ledger net asset value, combining HyperEVM USDC, spot USDC, and per-dex perpetual account equity across main and builder dexs.

Instructions

Read a HyperLiquid-enabled vault's tri-ledger NAV: HyperEVM USDC balance + HL spot USDC + per-dex HL perp account equity (main + every builder dex the vault has equity on). 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>"
    },
    "name": "factor_hl_get_nav"
  }
}

Input Schema

NameRequiredDescriptionDefault
vaultYesVault contract address.

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 supplied, the description carries the full behavioral burden. 'Read' and the composition of the NAV imply a non-mutating on-chain query, and the chain-999 restriction is genuinely useful scope information. It stops short of stating what happens if the vault is not HL-enabled, whether perp equity is marked at oracle or mid price, and how failures surface.

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?

One dense sentence with the resource front-loaded and the chain constraint trailing, with no filler. The jargon ('tri-ledger', 'builder dex') is domain-appropriate for this tool family but costs a little immediate readability.

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

Completeness3/5

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

There is no output schema and no annotations, so the description is the only source of context. It does explain what the NAV is composed of, which partly substitutes for a return description, but it does not say whether the result is a single aggregate figure, a per-ledger breakdown, or a per-dex array — a meaningful gap for a numeric aggregation tool.

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?

The schema already documents the single 'vault' parameter at 100% coverage (vault contract address), so the baseline is 3. The description adds one qualifier beyond the schema: the address must belong to a HyperLiquid-enabled vault, which narrows the valid input domain.

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?

The description pairs a specific verb (Read) with a precisely defined resource (a HyperLiquid vault's tri-ledger NAV) and then decomposes that resource into its three constituent ledgers: HyperEVM USDC balance, HL spot USDC, and per-dex perp account equity including builder dexes. No sibling in the list computes a cross-ledger NAV, so the agent can distinguish this from factor_hl_get_positions or factor_get_vault_info without opening 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 Guidelines3/5

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

Usage is only implied: the agent can infer this is the tool for a vault's total NAV rather than for raw positions, and 'HyperEVM (chain 999) only' scopes applicability to one chain. However, there is no explicit statement of when to prefer this over factor_hl_get_positions, nor any exclusion such as behavior for non-HyperLiquid vaults or other chains.

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