Skip to main content
Glama

get_perp_positions

Fetch all open perpetual positions for a specified wallet on HyperLiquid. Use the optional coin filter to narrow results by asset like BTC. No authentication required.

Instructions

Get all open perpetual positions for a wallet on HyperLiquid. No auth required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coinNoOptional filter to specific asset, e.g. 'BTC'
walletAddressYesWallet address to query

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.11.3

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It usefully discloses that no auth is required, but says nothing about read-only safety, pagination, rate limits, or what 'open' excludes (e.g. cross vs isolated).

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?

Two short sentences, zero padding, with the core purpose front-loaded and the auth note trailing. Nothing to trim.

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?

For a simple two-parameter read with no output schema, the description covers the essential who/what but omits the shape of the result and any scoping detail on what counts as an open position. Adequate but with clear gaps.

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 both walletAddress and the optional coin filter are already documented in the schema. The description adds no format or filtering semantics beyond what the schema provides, making 3 the baseline.

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 ('Get'), resource ('open perpetual positions'), and scope ('for a wallet on HyperLiquid'), which is enough to identify the operation. It does not, however, distinguish itself from nearby siblings such as get_hl_clearinghouse_state or get_account_state, which likely also surface position data.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this over get_hl_clearinghouse_state, get_account_state, or get_hl_open_orders. The only usage-adjacent statement is 'No auth required,' which is a precondition, not a when-to-use rule.

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