Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

getIndexPriceComponents

Retrieve the component exchanges and trading pairs that constitute a Bybit index price, with their weights and current prices. Understand index composition and investigate price discrepancies.

Instructions

Retrieve the component exchanges and trading pairs that make up a Bybit index price, including their individual weights, current prices, and multipliers.

Use this endpoint when you need to:

  • Understand which exchanges and spot pairs contribute to a Bybit index price

  • Investigate why an index price differs from individual spot market prices

  • Research the composition and weighting methodology of a specific index

Returns indexName, lastPrice, updateTime, and a components array with exchange-level details.

Do not use this endpoint for the index price value alone — use getTickers which includes indexPrice.

Notes:

  • No authentication required

Agent hint: Use this endpoint to inspect the composition of a Bybit index price. indexName is required (e.g., BTCUSDT, ETHUSDT). Returns which exchanges contribute and their weights in the index calculation. For the current index price value alone, use getTickers which includes indexPrice. TradFi: use to inspect the reference price composition of commodity perpetuals — indexName=XAUUSDT (gold), XAGUSDT (silver), CLUSDT (crude oil). Not available for xStock tokens (e.g. TSLAXUSDT).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexNameYes
Behavior4/5

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

No annotations exist, so the description is the only source of behavioral info. It states no authentication required and hints at supported indices. While it could mention rate limits or pagination, it adequately covers the read-only nature and scope for a straightforward tool.

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?

The description is well-organized with bullet points, sections, and a clear agent hint. Every sentence adds value without redundancy, making it concise and easy to parse.

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?

Given the single parameter and no output schema, the description adequately explains return fields (indexName, lastPrice, updateTime, components array). It covers basic usage and examples, though it could mention error scenarios or edge cases for completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but the description compensates by explaining the sole parameter indexName with examples (BTCUSDT, ETHUSDT, XAUUSDT, etc.) and constraints (not available for xStock tokens), adding significant semantic value 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 component exchanges and trading pairs making up a Bybit index price, including weights, current prices, and multipliers. It distinguishes from the sibling tool getTickers by specifying that this tool provides composition details, not just the index price.

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

Usage Guidelines5/5

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

Provides explicit when-to-use scenarios (understand contributions, investigate price differences, research composition) and a clear when-not-to-use (for index price alone, use getTickers). Includes examples like BTCUSDT, ETHUSDT, and TradFi commodities, with notes on unsupported tokens.

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