Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

preCheckOrder

Check margin requirements for futures and options orders before placement. Validate if order would be rejected due to insufficient margin without executing it.

Instructions

Validate an order before placing it to check margin requirements.

  • Futures and options only (linear, option categories)

  • Returns pre/post margin rates (IMR and MMR) in E4 format

  • Request parameters are the same as Create Order

  • Useful for checking if an order would be rejected due to insufficient margin

  • Does not actually place the order

Agent hint: Use this endpoint to validate margin requirements before placing an order. Does not actually create an order. Only works for futures and options. TradFi: use to pre-validate margin for equity perpetuals and commodity perpetuals (category=linear) before placing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYes
symbolYes
sideYes
orderTypeYes
qtyYes
priceNo
isLeverageNo
timeInForceNo
positionIdxNo
orderLinkIdNo
takeProfitNo
stopLossNo
tpTriggerByNo
slTriggerByNo
reduceOnlyNo
tpslModeNo
tpLimitPriceNo
slLimitPriceNo
tpOrderTypeNo
slOrderTypeNo
orderIvNo
Behavior3/5

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

With no annotations, the description carries full burden. It discloses the tool does not place orders, returns pre/post margin rates in E4 format, and only works for linear and option categories. It does not mention authentication, rate limits, or detailed response structure, but covers key behavioral aspects adequately.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is somewhat repetitive with an Agent hint and TradFi note that restate the same core information. It could be streamlined into a single concise paragraph without losing clarity.

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

Completeness2/5

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

Given 21 parameters, no output schema, and no annotations, the description is insufficient. It fails to explain the response format in detail, provide parameter guidance, or cover prerequisites. The tool is moderately complex but the description only addresses basic purpose.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% with 21 parameters. The description only states 'Request parameters are the same as Create Order' without explaining any parameter meaning, format, or constraints beyond what enums provide. This fails to add value for the agent.

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 validates an order before placing it to check margin requirements. It specifies it is for futures and options only (linear, option categories) and distinguishes itself from createOrder by noting it does not actually place the order.

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?

The description explicitly says to use this endpoint to validate margin requirements before placing an order, and that it does not create orders. It states only works for futures and options, implying not for other categories, but could be more explicit about when not to use.

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