Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

getPredictionOrderEstimate

Estimate execution details before placing a prediction market order. Shows fill price, shares received, fee, and if a FOK order can fully fill.

Instructions

Get estimated execution details for a prediction market order before placing it. Returns estimated average fill price, total shares received/sold, fee, and whether the FOK order can be fully filled.

Mandatory before any buy or sell. AI agent must show estimated results to the user before proceeding to execution.

  • BUY: set side=1, amount = USDC to invest, payTokenCode = "USDC"

  • SELL: set side=2, amount = number of shares to sell

Phase 1 supports orderType=1 (FOK) only. A FOK order that cannot be fully filled will be cancelled entirely.

Agent hint: REQUIRED before calling buy or sell. Always show the estimate to the user first. side=1 is BUY (amount in USDC), side=2 is SELL (amount in shares). orderType=1 (FOK) is the only supported type in Phase 1. Show estimatedCost, estimatedReceive, feeAmount, and toWin (BUY only) to the user. Do NOT call buy/sell without user confirmation after viewing the estimate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sideYes
amountYes
eventIdYes
tokenIdYes
orderTypeYes
payTokenCodeNo
Behavior5/5

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

No annotations provided, so description carries full burden. Discloses that Phase 1 supports only FOK orders, that unfilled FOK orders are cancelled entirely, and lists returned fields (estimatedCost, estimatedReceive, feeAmount, toWin).

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 bullet points and bold emphasis. Front-loaded with purpose. Could be slightly more concise, but every sentence adds value and the structure aids readability.

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?

For a prediction market estimation tool, the description covers required parameters, behavioral constraints (FOK-only), and what to show the user. Despite no output schema, it mentions key return fields. Complete for correct agent invocation.

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 has 0% description coverage, but description adds detailed semantics for side, amount, payTokenCode, and orderType. It explains side=1 is BUY (amount in USDC) and side=2 is SELL (amount in shares). eventId and tokenId are not explicitly described but context implies their purpose.

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?

Clearly states it estimates execution details for a prediction market order before placing. Distinguishes itself by emphasizing it's mandatory before any buy or sell, and provides explicit BUY/SELL parameter guidance.

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?

Explicitly says 'Mandatory before any buy or sell' and instructs the agent to show estimated results to the user. Provides clear parameter mapping for BUY vs SELL, and mentions supported order type (FOK only).

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