Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

getPredictionPriceHistory

Retrieve historical price time series for prediction outcome tokens by token IDs or event ID. Ideal for charting and trend analysis.

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
Behavior4/5

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

Discloses stricter rate limits (2 req/s) and two modes of operation. While no annotations exist, the description adequately covers behavioral traits for a read-only historical query, though it doesn't explicitly state it's idempotent or read-only.

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?

Well-structured with clear sections for purpose, modes, interval, fidelity, and rate limits. No redundant sentences, but slightly lengthy for a simple query tool.

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?

Covers usage modes, parameters, rate limits, and hints for agents. However, without an output schema, it lacks details on the return format (e.g., fields like timestamp, open, close). Still sufficient for a chart tool.

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?

With 0% schema description coverage, the description adds meaning by explaining interval enum values, fidelity's auto mode, and the two modes (tokenIds vs eventId) including the 20-token limit. It doesn't detail each parameter's type or constraints but provides sufficient context.

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 queries historical price data for prediction outcome tokens, returns time series for chart display, and distinguishes from the sibling tool getPredictionTokenPrice for current prices.

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?

Explicit guidance on when to use (getting price chart history) and when not (for current prices, use getPredictionTokenPrice). Provides recommended intervals for daily vs weekly views and suggests preferring tokenIds when known.

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