Skip to main content
Glama

Leash

Hyperliquid account state

hl_user_state
Read-onlyIdempotent

Public Hyperliquid perp account summary for an address: account value, margin used, withdrawable and open positions.

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": {
      "address": "<address>"
    },
    "name": "hl_user_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already establish readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description adds one genuinely useful behavioral fact beyond that: the data is 'Public', implying no auth or signing is required. It does not mention rate limits, error behavior for an unknown or malformed address, or whether positions are cross/isolated-scoped, leaving meaningful gaps for a data-fetching tool.

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?

A single front-loaded sentence with the key qualifier ('Public', 'perp') placed early and the return fields listed compactly after a colon. No filler or restated tool name. It is possibly a touch too terse given the absent usage guidance, but every word earns its place.

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 one-parameter read tool with no output schema, the description usefully enumerates the returned fields and annotations cover the safety profile, which is close to sufficient for correct invocation. Missing pieces are edge behavior (invalid address, empty account) and any indication of related tools to chain, which keeps it below a 5.

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?

There is a single parameter with 0% schema description coverage, so the schema's regex pattern is the only formal guidance on address format. The description clarifies that the address is an 'account' address whose perp state is summarized, which is modest added meaning. It does not address whether checksum casing or a non-Hyperliquid address is acceptable.

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 names a clear verb and resource ('Public Hyperliquid perp account summary for an address') and enumerates the returned content (account value, margin used, withdrawable, open positions). This makes the tool's scope concrete and separates it from siblings like hl_spot_balances or hl_user_fills by specifying 'perp account' state. It stops short of explicitly naming a sibling it contrasts with.

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 phrase 'perp account summary' and the 'user state' tool name suggest it is the entry point for account-level metrics as opposed to fills, funding, or orders. There is no explicit 'use this when…' clause, no prerequisites stated, and no named alternative for related questions such as spot holdings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources