Skip to main content
Glama

Loading portfolio data

address_portfolio
Read-onlyIdempotent

Get comprehensive portfolio overview for a wallet address or entity.

Hyperliquid perpetual positions include liquidation prices to support risk analysis workflows.

For wallet addresses, supports different modes:

  • 'fast-mode-default': Wallet balances + Hyperliquid positions (skip defi, for fast mode only)

  • 'all': Wallet balances + DeFi positions + Hyperliquid positions

  • 'wallet_balances': Only token balances (tokens and native coins across all chains)

  • 'defi': Only DeFi positions (lending, staking, LP tokens, etc., excluding Hyperliquid)

  • 'hyperliquid': Only Hyperliquid data — perp positions (with liquidation prices and margin summary) plus HL spot wallet balances

For entities (e.g., "Binance", "Paradigm Fund"), only on-chain token balances are returned, aggregated across all addresses associated with the entity.

For a trader, send trader_id: the token balances and open Hyperliquid perp positions of all wallets of the trader.

This tool provides flexible portfolio analysis in a single request, allowing users to focus on specific aspects of their holdings.

The output is pre-formatted markdown that should be presented exactly as returned, preserving all tables, sections, and formatting without reinterpretation.

Example Usage: Get full comprehensive portfolio for a wallet: { "walletAddress": "0x28c6c06298d514db089934071355e5743bf21d60", "mode": "all" }

Get only DeFi positions:
```
{
    "walletAddress": "0x28c6c06298d514db089934071355e5743bf21d60",
    "mode": "defi"
}
```

Get only Hyperliquid positions:
```
{
    "walletAddress": "0x28c6c06298d514db089934071355e5743bf21d60",
    "mode": "hyperliquid"
}
```

Get token balances for an entity:
```
{
    "entity_id": "Binance"
}
```

Get the portfolio of a trader:
```
{
    "trader_id": "5482f9aeb02f67b7"
}
```

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": {
      "request": "<request>"
    },
    "name": "address_portfolio"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYesComplete request for Address Portfolio endpoint (flattened). IMPORTANT: Exactly one of 'wallet_address', 'entity_id' or 'trader_id' must be provided.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / request / properties / chain / description
      Added value: +"Blockchain network to query. Use a specific chain to limit results or all for the supported networks."
  2. Changed4 schema fields changed
    • changedInput schema / properties / request / description
      Previous value: -"Complete request for Address Portfolio endpoint (flattened).\n\nIMPORTANT: Exactly one of 'wallet_address' or 'entity_id' must be provided (not both, not neither)."New value: +"Complete request for Address Portfolio endpoint (flattened).\n\nIMPORTANT: Exactly one of 'wallet_address', 'entity_id' or 'trader_id' must be provided."
    • changedInput schema / properties / request / properties / entity_id / description
      Previous value: -"Entity name to analyze (e.g., 'Binance', 'Paradigm Fund'). For entities, only token balances are returned. REQUIRED if wallet_address is not provided. Cannot be used together with wallet_address."New value: +"Entity name to analyze (e.g., 'Binance', 'Paradigm Fund'). For entities, only token balances are returned. REQUIRED if wallet_address and trader_id are not provided. Cannot be used together with wallet_address or trader_id."
    • addedInput schema / properties / request / properties / trader_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Trader ID from the Traders results of general_search. Covers all wallets of the trader. Use it instead of address or entity_id. With trader_id, there are no DeFi positions (mode defi is an error, all is fast-mode-default), the perp table has one row per wallet and coin, and there is no Hyperliquid account summary or Hyperliquid spot balance."
      +}
    • changedInput schema / properties / request / properties / walletAddress / description
      Previous value: -"Wallet address to analyze comprehensive portfolio for. REQUIRED if entity_id is not provided. Cannot be used together with entity_id."New value: +"Wallet address to analyze comprehensive portfolio for. REQUIRED if entity_id and trader_id are not provided. Cannot be used together with entity_id or trader_id."
  3. Changed5 schema fields changed
    • addedInput schema / properties / request / additionalProperties
      Added value: +false
    • removedInput schema / properties / request / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  {
      -    "description": "Complete request for Address Portfolio endpoint (flattened).\n\nIMPORTANT: Exactly one of 'wallet_address' or 'entity_id' must be provided (not both, not neither).",
      -    "properties": {
      -      "chain": {
      -        "default": "all",
      -        "type": "string"
      -      },
      -      "entity_id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Entity name to analyze (e.g., 'Binance', 'Paradigm Fund'). For entities, only token balances are returned. REQUIRED if wallet_address is not provided. Cannot be used together with wallet_address."
      -      },
      -      "mode": {
      -        "default": "fast-mode-default",
      -        "description": "Portfolio mode: 'fast-mode-default' (default - wallet_balances + hyperliquid), 'all' (wallet_balances + defi + hyperliquid), 'wallet_balances' (only token balances), 'defi' (only DeFi positions), 'hyperliquid' (only Hyperliquid positions)",
      -        "type": "string"
      -      },
      -      "walletAddress": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Wallet address to analyze comprehensive portfolio for. REQUIRED if entity_id is not provided. Cannot be used together with entity_id."
      -      }
      -    },
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / request / description
      Added value: +"Complete request for Address Portfolio endpoint (flattened).\n\nIMPORTANT: Exactly one of 'wallet_address' or 'entity_id' must be provided (not both, not neither)."
    • addedInput schema / properties / request / properties
      Added value: +{
      +  "chain": {
      +    "default": "all",
      +    "type": "string"
      +  },
      +  "entity_id": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "Entity name to analyze (e.g., 'Binance', 'Paradigm Fund'). For entities, only token balances are returned. REQUIRED if wallet_address is not provided. Cannot be used together with wallet_address."
      +  },
      +  "mode": {
      +    "default": "fast-mode-default",
      +    "description": "Portfolio mode: 'fast-mode-default' (default - wallet_balances + hyperliquid), 'all' (wallet_balances + defi + hyperliquid), 'wallet_balances' (only token balances), 'defi' (only DeFi positions), 'hyperliquid' (only Hyperliquid positions)",
      +    "type": "string"
      +  },
      +  "walletAddress": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "description": "Wallet address to analyze comprehensive portfolio for. REQUIRED if entity_id is not provided. Cannot be used together with entity_id."
      +  }
      +}
    • addedInput schema / properties / request / type
      Added value: +"object"
  4. Changed3 schema fields changed
    • removedInput schema / $defs
      Removed value: -{
      -  "AddressPortfolioRequest": {
      -    "description": "Complete request for Address Portfolio endpoint (flattened).\n\nIMPORTANT: Exactly one of 'wallet_address' or 'entity_id' must be provided (not both, not neither).",
      -    "properties": {
      -      "chain": {
      -        "default": "all",
      -        "type": "string"
      -      },
      -      "entity_id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Entity name to analyze (e.g., 'Binance', 'Paradigm Fund'). For entities, only token balances are returned. REQUIRED if wallet_address is not provided. Cannot be used together with wallet_address."
      -      },
      -      "mode": {
      -        "default": "fast-mode-default",
      -        "description": "Portfolio mode: 'fast-mode-default' (default - wallet_balances + hyperliquid), 'all' (wallet_balances + defi + hyperliquid), 'wallet_balances' (only token balances), 'defi' (only DeFi positions), 'hyperliquid' (only Hyperliquid positions)",
      -        "type": "string"
      -      },
      -      "walletAddress": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Wallet address to analyze comprehensive portfolio for. REQUIRED if entity_id is not provided. Cannot be used together with entity_id."
      -      }
      -    },
      -    "type": "object"
      -  }
      -}
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / request / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  {
      -    "$ref": "#/$defs/AddressPortfolioRequest"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "type": "object"
      +  },
      +  {
      +    "description": "Complete request for Address Portfolio endpoint (flattened).\n\nIMPORTANT: Exactly one of 'wallet_address' or 'entity_id' must be provided (not both, not neither).",
      +    "properties": {
      +      "chain": {
      +        "default": "all",
      +        "type": "string"
      +      },
      +      "entity_id": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Entity name to analyze (e.g., 'Binance', 'Paradigm Fund'). For entities, only token balances are returned. REQUIRED if wallet_address is not provided. Cannot be used together with wallet_address."
      +      },
      +      "mode": {
      +        "default": "fast-mode-default",
      +        "description": "Portfolio mode: 'fast-mode-default' (default - wallet_balances + hyperliquid), 'all' (wallet_balances + defi + hyperliquid), 'wallet_balances' (only token balances), 'defi' (only DeFi positions), 'hyperliquid' (only Hyperliquid positions)",
      +        "type": "string"
      +      },
      +      "walletAddress": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Wallet address to analyze comprehensive portfolio for. REQUIRED if entity_id is not provided. Cannot be used together with entity_id."
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
  5. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description correctly spends its words elsewhere: it discloses that output is pre-formatted markdown that must be presented verbatim, and that trader_id changes the shape of results (no DeFi, one perp row per wallet/coin, no HL account summary or spot balance). Those are real behavioral traits an agent cannot get from annotations alone.

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 mode list is front-loaded and earns its place, but three near-identical example blocks differ only in the mode string, and the closing sentence ("This tool provides flexible portfolio analysis...") is pure filler. Roughly a third of the text could be cut without losing information.

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 multi-mode tool with a nested request object and an output schema already present, the description covers the decisions an agent must make: which input identifier to send and what each mode yields. Return-value detail is rightly left to the output schema, and the markdown-preservation instruction closes the main gap.

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 coverage is 100%, so baseline is 3; the description earns above baseline by adding semantics the schema only partially carries — that entity mode aggregates token balances across all associated addresses, and that trader_id is sourced from general_search results. The mode and input-exclusivity rules mostly restate schema text, so it is not a full 5.

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 opening sentence states a specific verb and resource ("Get comprehensive portfolio overview") and the body enumerates exactly what each mode returns, so an agent can tell the tool's scope from its name plus description. It does not explicitly differentiate itself from siblings such as address_perp_positions or address_historical_balances, leaving the agent to infer that 'hyperliquid' mode overlaps with the dedicated perps tool.

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?

Usage context is clear and well-covered: each mode's purpose is spelled out, and the entity/trader/address input paths each get their own explanation plus a worked example. What's missing is explicit exclusion guidance against alternative tools — nothing says when to prefer this over address_perp_positions or address_counterparties.

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