Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

getPredictionPriceHistory

Read-only

Retrieve historical price series for prediction outcome tokens by supplying up to 20 token IDs or an event ID, choose an interval (1H to ALL) for chart display.

Instructions

Query historical price data for prediction outcome tokens. Returns price time series for chart display.

Two modes:

  1. By tokenIds: specify up to 20 token IDs directly

  2. By eventId: specify an event to get price history for all its tokens

The interval controls the time range: 1H, 6H, 1D, 1W, 1M, or ALL. The fidelity controls how many minutes between data points (0 = auto).

Note: This endpoint has stricter rate limits (2 req/s) due to no caching.

Agent hint: Use this to get price chart history for specific tokens or events. Use interval=1D for daily view, interval=1W for weekly trend analysis. Prefer querying by tokenIds when you know the specific tokens. Do NOT use this for current prices — use getPredictionTokenPrice instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventIdNo
fidelityNo
intervalYes
tokenIdsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.15

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds valuable behavioral context beyond annotations: a stricter 2 req/s rate limit, no caching, two distinct query modes, interval semantics, and fidelity's auto behavior. It stops short of describing response field details or behavior when both/neither mode parameter is supplied.

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 structured and front-loaded: a clear purpose sentence, returns statement, numbered modes, parameter definitions, a rate-limit note, and an agent hint. Every sentence adds actionable information; nothing is redundant or filler.

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?

The description is highly complete for a read-only query tool: it covers modes, parameters, rate limits, and alternative routing. The main gap is that it doesn't explicitly state whether exactly one of tokenIds or eventId is required, and since there is no output schema, it gives only a high-level 'price time series for chart display' rather than response structure details.

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?

With 0% schema description coverage, the description carries the full semantic burden and does so well. It explains interval as a time-range control with all enum values listed, fidelity as minutes between data points with 0 meaning auto, tokenIds as supporting up to 20 token IDs, and eventId as a way to get history for all tokens in an event.

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 opens with a specific verb and resource: 'Query historical price data for prediction outcome tokens.' It clearly distinguishes this from current-price tools by explicitly stating 'Do NOT use this for current prices — use getPredictionTokenPrice instead.' The purpose is unambiguous and differentiates from sibling prediction tools.

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 gives explicit when-to-use guidance: historical price chart history for specific tokens or events, with interval recommendations for daily vs weekly views. It also names the alternative getPredictionTokenPrice and explicitly excludes current price queries. Mode selection between tokenIds and eventId is clearly explained.

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