Skip to main content
Glama

Get account balances

get_account_balances
Read-onlyIdempotent

YOUR Hyperliquid balances (the API key's user — no address input, identity comes from the key): the main wallet you trade from manually, plus your Gambit agent's deposit wallet when one is registered (null when absent; an {alias_of_main_wallet: true} marker, with no balances to avoid double-counting, when the agent trades from the main wallet itself). Each wallet reports native_perp (the NATIVE perp clearinghouse's margin summary: account value, margin used, withdrawable, open-position count), spot token balances, and hip3_perp: one entry per HIP-3 builder DEX (xyz, flx, …) where the wallet has funds or positions, with the same margin fields plus collateral_token (null when unknown). Each DEX is its own margin account, possibly in a different collateral token, so never add them into native_perp. Unified accounts hold pooled collateral in spot, so a zero native_perp does not mean no funds. hip3.failed_dexes lists any DEX that could not be read (meta.quality is then "partial"); hip3.included false means the DEX list itself was unavailable. (Requires api:read.)

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses genuine behavioral traits: absence returns null, an alias marker with no balances avoids double-counting, unified accounts can hold funds in spot so zero native_perp is not empty, DEX margin accounts must not be summed with native_perp, and failed DEX reads surface via failed_dexes with meta.quality='partial'. These are non-obvious data-integrity semantics the agent would otherwise get wrong.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core scope is front-loaded in the first clause, but the remainder is a dense run-on of nested parentheticals mixing wallet taxonomy, field definitions, and error states. Since there is no output schema the content largely earns its place, but the structure makes it hard to scan.

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

Completeness5/5

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

With no output schema, the description carries the full burden of explaining return shape and it does so thoroughly: wallet entities, per-wallet native_perp/spot/hip3_perp fields, collateral_token, and partial-failure indicators. An agent can correctly interpret and act on the response from this text alone.

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?

Zero parameters yields a baseline of 4, and the description reinforces that identity is derived from the API key rather than supplied, which is meaningful for a parameterless tool. No further param detail is needed or possible.

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 (account balances) and immediately pins the scope to the API key's own account, explicitly excluding an address input. That clause distinguishes it from address-oriented siblings such as get_wallets without needing to name them.

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?

The 'YOUR ... no address input, identity comes from the key' phrasing implicitly tells the agent when this tool applies rather than an address-based one, and '(Requires api:read.)' flags a prerequisite. But there is no explicit routing against get_wallets, get_holdings, or get_portfolio_performance, so the when-to-use rule must be inferred.

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