Skip to main content
Glama
Batch Slippage Bybit

Batch Slippage Bybit

by tordagaz-ops

Check an order against the venue rules

check_order
Read-only

Validates a Bybit order quantity and price against per-pair lot, size, value, and order-type rules, returning the accepted quantity and the first rule an order breaks.

Instructions

Applies Bybit's per-pair rules to one quantity and price: lot step, minimum quantity, maximum quantity (limit and market), minimum and maximum order value. Returns the quantity the venue would actually accept and the first rule the order breaks, if any.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>",
      "quantity": "<quantity>"
    },
    "name": "check_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideNo'buy' walks the asks, 'sell' walks the bids.buy
priceNoPrice to value the order at. Omit to use the mid of the book.
venueNoVenue to read. Default 'bybit', the only adapter so far.bybit
symbolYesPair in any spelling: 'BTC/USDT', 'BTCUSDT' or 'btc-usdt'.
quantityYesBase-asset quantity to validate, in the pair's base coin.
order_typeNo'market' (default) or 'limit'. Bybit publishes a tighter quantity ceiling for market orders.market

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered. The description adds real value beyond that: it discloses that the tool reports the quantity the venue would actually accept and the FIRST broken rule rather than failing on all violations, which tells an agent how to interpret results. It does not mention rate limits, caching, or how stale the venue rules might be.

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?

Two sentences, front-loaded with the rule set and followed by the return behavior. The colon-separated rule list packs detail without waste, and nothing is redundant or padding.

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?

With six parameters, full schema coverage, an output schema, and annotations present, the description carries only the burden of scope and result interpretation, which it does well. The remaining gap is that it does not say what an agent should do with a violated rule (fix and retry, or escalate), which matters for a validation tool.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3 and every parameter is already documented in the schema, including side's book-walking semantics and price defaulting to the mid. The description adds only light cross-parameter meaning, noting that the quantity ceiling varies by limit vs market, which reinforces order_type but does not go beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (applies rules) and resource (one order's quantity/price on Bybit), and enumerates exactly which rules are checked: lot step, min/max quantity, min/max notional. It also states the return semantics. It stops short of contrasting itself with siblings like batch_slippage or plan_slices, so it is clear but not sibling-differentiating.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: an agent can infer this is a pre-trade validation step, and the schema's price/order_type descriptions hint at which variant to pick. There is no explicit 'call this before placing an order' framing, no when-not-to-use, and no pointer to the sibling that handles multi-order or sizing concerns.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.