Skip to main content
Glama
Bybit MCP Server

Bybit MCP Server

by trenerok

get_klines

Fetch candlestick/OHLCV history for a trading pair across selectable intervals to analyze price action and market trends.

Instructions

Get candlestick/OHLCV data for a trading pair. Public endpoint (no auth required).

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": {
      "category": "<category>",
      "symbol": "<symbol>",
      "interval": "<interval>"
    },
    "name": "get_klines"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoEnd timestamp in ms
limitNoNumber of candles (default: 200, max: 1000)
startNoStart timestamp in ms
symbolYesTrading pair symbol (e.g., BTCUSDT)
categoryYesProduct category
intervalYesKline interval (1=1min, D=1day, etc.)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description must carry the behavioral burden. It does disclose one important trait, that the endpoint is public and requires no auth, which is real value. It says nothing about rate limits, default time window when start/end are omitted, or ordering of returned candles, leaving meaningful behavioral gaps.

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?

Two short sentences with the resource definition first and the auth constraint second. There is no filler, and the most decision-relevant facts are front-loaded.

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 read-only fetch tool with a fully documented six-parameter schema and no output schema, the description covers purpose and auth adequately. It is only slightly short of complete because it omits pagination/ordering behavior when start/end are not supplied, which affects how an agent reasons about the returned candle window.

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

Parameters3/5

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

Schema description coverage is 100%, with every parameter (including enum values for category and interval, and the limit default/max) documented in the schema. The description adds no parameter-level meaning beyond 'for a trading pair,' so the baseline 3 for schema-driven parameters is appropriate.

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?

States a specific verb and resource: 'Get candlestick/OHLCV data for a trading pair.' An agent immediately knows this returns price series data rather than account, order, or instrument metadata. It does not explicitly contrast itself with siblings like get_recent_trades or get_orderbook, which would be needed for a 5.

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 parenthetical 'Public endpoint (no auth required)' is genuinely useful routing context for an agent choosing among endpoints with differing auth needs. However, it gives no explicit when-to-use guidance and names no alternative for candle-like data, so usage remains implied rather than stated.

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