Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

getPremiumIndexPriceKline

Retrieve historical premium index klines showing the basis between mark price and index price for funding rate analysis of USDT and USDC perpetual contracts.

Instructions

Query historical premium index price klines, representing the basis between mark price and index price used in funding rate calculations for USDT and USDC perpetual contracts.

Use this endpoint when you need to:

  • Analyze historical funding rate basis for perpetual contracts

  • Research the relationship between mark price and index price over time

  • Build charts of the premium index (values are typically small positive or negative decimals)

Supported Products: USDT perpetual, USDC perpetual

Each kline entry is a 5-element array: [startTime, open, high, low, close]. Data is returned in reverse chronological order (most recent first).

Do not use this endpoint for trading/mark/index price candles — use the respective kline endpoints.

Notes:

  • Data is returned in reverse chronological order (most recent first)

  • No authentication required

Agent hint: Use this endpoint to retrieve historical premium index candles used in funding rate calculation. The premium index represents the spread between mark price and index price. For trading price candles use getMarketKline; for mark price use getMarkPriceKline; for index price use getIndexPriceKline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNolinear
symbolYes
intervalYes
startNo
endNo
limitNo
Behavior4/5

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

With no annotations, the description carries full burden. It discloses that data is returned in reverse chronological order and the output format (5-element array). It does not mention rate limits or error handling, but for a read-only kline endpoint, the coverage is good. A minor gap is lack of mention of pagination behavior.

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

Conciseness4/5

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

The description is well-structured with bullet points and bold headings, making it scannable. It is front-loaded with the core purpose. However, the 'Agent hint' at the end is redundant with earlier content, adding slight unnecessary length.

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 kline query tool with 6 parameters and no output schema, the description covers purpose, usage context, output format, ordering, authentication, and differentiation from similar tools. It lacks explicit parameter descriptions but the standard nature of kline parameters partially compensates. Overall, it is fairly complete.

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

Parameters2/5

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

The input schema has 0% description coverage, so the description must add meaning. However, it does not explicitly explain any parameters (e.g., start, end, limit). The meaning of symbol and interval is implied by the endpoint type, but start/end and limit are standard but not described. The 'Agent hint' is vague and doesn't compensate. This is a significant gap.

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 it queries historical premium index price klines and explains they represent the basis between mark and index price for funding rate calculations. It explicitly distinguishes from sibling tools like getMarketKline, getMarkPriceKline, and getIndexPriceKline.

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?

The description provides explicit use cases (analyzing funding rate basis, researching mark-index relationship, building charts) and explicitly states when not to use it (for trading/mark/index price candles) with references to alternative endpoints. Also notes that no authentication is required.

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