Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

getPredictionTokenPrice

Query current market prices for up to 20 prediction outcome tokens. Get best bid, ask, and last trade price as probability (0-1) to confirm prices before trading.

Instructions

Query current market prices for up to 20 prediction outcome tokens. Returns best bid, best ask, and last trade price for each token.

AI agent should call this before placing orders to confirm current market prices. Price represents probability (0-1): a price of 0.65 means ~65% chance of YES.

Agent hint: Use this to get current prices for specific tokenIds before trading. Price is a probability (0 to 1). A YES token at 0.65 means 65% probability of YES outcome. Always check price before buy/sell. Maximum 20 tokenIds per request. Do NOT use this for price history — use getPredictionPriceHistory instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenIdsYes
Behavior4/5

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

Without annotations, the description carries the full burden and explains the probability interpretation (0-1), the limit of 20 tokenIds, and the data returned. However, it omits potential behavioral details like authentication requirements or rate limits, leaving some room for improvement.

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 and front-loaded with key information. However, it contains some redundancy in explaining the price probability twice, making it slightly less concise than optimal.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite no output schema, the description thoroughly explains the return values (best bid, best ask, last trade) and the probability meaning. It also includes usage hints and a sibling distinction, making it complete for a simple query tool with one parameter.

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?

Schema coverage is 0%, so description must add meaning. It explains that tokenIds specify the tokens to query, imposes a maximum of 20, and implies they are string IDs. It adds value beyond the empty schema but does not detail the format of tokenIds.

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 current market prices for prediction outcome tokens, specifies the returned fields (best bid, best ask, last trade), and distinguishes itself from getPredictionPriceHistory by explicitly excluding price history queries.

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 usage guidelines: call before placing orders, check price before buy/sell, maximum 20 tokenIds per request, and includes a clear directive to not use for price history, referencing the alternative tool getPredictionPriceHistory.

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