Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

querySubMembers

Retrieve a complete list of all sub-accounts under the master account, including details such as UID, username, account type, status, and UTA mode. Requires master account API key.

Instructions

Get a complete list of all sub-accounts under the master account. Use master account's API key.

Important notes (from official Bybit V5 documentation):

  • Only master account can call this endpoint

  • Sub-accounts CANNOT use this endpoint

  • Returns ALL sub-accounts in a single response (no pagination)

  • Includes comprehensive account information and UTA status

What information is returned:

  1. ✅ Sub-account UID and username

  2. ✅ Account type (normal, custodial, demo, escrow fund)

  3. ✅ Account status (normal, banned, frozen, deleted)

  4. ✅ Account mode (Classic, UTA 1.0/2.0, UTA Pro, Unified)

  5. ✅ Remark/notes for each sub-account

Supported Sub-account Types: This endpoint returns ALL types of sub-accounts:

  • Normal sub-accounts (type=1, MEMBER_RELATION_TYPE_OWN)

  • Custodial sub-accounts (type=6, MEMBER_RELATION_TYPE_ENTRUST_TRADE)

  • Demo sub-accounts (type=2, MEMBER_RELATION_TYPE_DEMO)

  • Escrow fund sub-accounts (for trading teams)

Process Flow:

  1. Parse metadata from request context to get master account ID

  2. Query normal + demo + trading custodial sub-accounts via ListSubMemberForOpenAPI

    • Queries member_relation table with decrypted login names

    • Includes types: OWN (1), DEMO (2), ENTRUST_TRADE (6)

  3. Query escrow fund sub-accounts for trading teams via GetEscrowFundSubMember

    • Queries escrow_fund_member_relation table

    • Specific for trading team escrow accounts

  4. Merge both lists of sub-accounts

  5. If no sub-accounts found, return empty list

  6. Extract all sub-account IDs for batch queries

  7. Fetch UTA tags (UTA, UNIFIED, UTAPRO, UTAINVERSE) from member_tags table

  8. For each sub-account:

    • Get basic info (UID, username, type, status, remark)

    • Calculate accountMode based on UTA tags

    • Default accountMode = 1 if no tags found

  9. Return complete sub-account list

Account Mode Determination Logic: The account mode is determined by checking member tags in the following priority:

  1. If both UTAPRO=SUCCESS and UTAINVERSE=SUCCESS → UTA 2.0 Pro (6)

  2. If UTAINVERSE=SUCCESS → UTA 2.0 (5)

  3. If UTAPRO=SUCCESS → UTA 1.0 Pro (4)

  4. If UTA=SUCCESS → UTA 1.0 (3)

  5. If UNIFIED=SUCCESS → Unified (7)

  6. Otherwise → Classic/Default (1)

Difference from V5 Query:

  • This endpoint (V3): Returns ALL sub-accounts in single response, no pagination

  • /v5/user/submembers (V5): Uses cursor-based pagination with pageSize limit

Use Cases:

  • Get complete overview of all sub-accounts

  • Check sub-account statuses and configurations

  • Audit UTA upgrade status across all sub-accounts

  • Small to medium-sized sub-account lists (no pagination)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description fully discloses behavior: returns all sub-accounts in single response (no pagination), includes UTA status, account mode determination logic, and detailed process flow. This provides complete transparency about what the tool does and its internal logic.

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 description is well-structured with sections and bullet points, but it is verbose, including detailed implementation steps (process flow) that may not be necessary for an agent. It could be more concise by focusing on input/output and key constraints rather than internal query logic.

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?

Given the complexity of the tool (multiple sub-account types, UTA mode logic, and no output schema), the description is very complete. It explains return fields, account types, statuses, modes, and differences from V5, covering all necessary information for an agent to use it correctly.

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?

The tool has zero parameters, and the schema coverage is 100% (empty). Per the guidelines, baseline for 0 parameters is 4. The description adds value by explaining the context of the operation but does not need to document parameters. It covers the purpose well beyond the schema.

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 clearly states the tool retrieves a complete list of all sub-accounts under the master account, with specific verb 'Get' and resource 'sub-accounts'. It distinguishes from sibling tool querySubMembersV5 by noting the V5 uses cursor-based pagination, and explicitly identifies itself as V3, thus avoiding confusion.

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?

The description explicitly states only master account can call, sub-accounts cannot, and lists use cases. However, it does not explicitly state when to avoid this tool (e.g., for large accounts that might benefit from pagination), though it mentions the V5 alternative. Slight room for improvement in exclusion guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bybit-exchange/trading-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server