Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

executePredictionBuy

Execute a buy order for prediction outcome tokens, paying USDC to receive shares. Requires explicit user confirmation after previewing the order estimate.

Instructions

Execute a buy order for prediction outcome tokens. Pays USDC and receives outcome token shares.

Prerequisites (mandatory):

  1. Call getPredictionEngineStatus — engine must be available

  2. Call getPredictionEventDetail — get tokenId and verify market is open

  3. Call getPredictionOrderEstimate — preview the order details

  4. Display the estimate to the user and obtain explicit confirmation

Do NOT call this endpoint without explicit user confirmation.

Phase 1 supports orderType=1 (FOK) only. A FOK order that cannot be fully filled at the current price will be entirely cancelled. Use slippage to set price tolerance (e.g., "0.05" = 5%).

Response is an ACK only. Check getPredictionOrderList for final fill status.

Agent hint: REQUIRES explicit user confirmation before calling. Always call getPredictionEngineStatus, getPredictionEventDetail, and getPredictionOrderEstimate first. Show estimate details to user and wait for explicit "yes" before proceeding. orderType=1 (FOK) is the only supported type. slippage="0.05" means accept up to 5% price movement. Response is async ACK — check getPredictionOrderList for actual fill result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYes
eventIdYes
tokenIdYes
slippageYes
orderTypeYes
payTokenCodeYes
Behavior5/5

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

With no annotations, the description fully carries the burden. It details that the order is FOK, async ACK response, and that getPredictionOrderList must be checked for fill status. No contradictions.

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?

Well-structured with a summary line, bullet-like prerequisites, and additional details. Every sentence adds value. The 'Agent hint' section slightly repeats but is acceptable for clarity.

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?

No output schema, but description covers the ACK response and how to get actual fill status via getPredictionOrderList. All necessary context for a buy execution tool is present.

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%, but the description explains slippage (e.g., '0.05' = 5%), orderType is only '1' (FOK), and implies tokenId/eventId/amount usage. payTokenCode is not explained but context suggests USDC. Good value despite missing per-parameter breakdown.

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 action ('Execute a buy order'), the resource ('prediction outcome tokens'), and the flow ('Pays USDC and receives outcome token shares'). It distinguishes from siblings like executePredictionSell.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit prerequisites are listed (steps 1-4), and the description states 'Do NOT call this endpoint without explicit user confirmation.' It explains when to use (after pre-calls) and covers order type (FOK only) and slippage. Missing explicit alternatives but still very clear.

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