Skip to main content
Glama
Batch Slippage Bybit

Batch Slippage Bybit

by tordagaz-ops

Split a big order into child orders

plan_slices
Read-only

Splits a parent order into sequential child orders priced against remaining order-book depth, caps each at the venue ceiling, and reports per-child and cumulative costs plus size fitting a budget.

Instructions

Cuts one parent order into sequential child orders, each priced against the depth the previous children left behind, and each capped by the venue's market-order ceiling. Reports the cost of every child and the cumulative cost of the whole plan, plus the size that fits the budget.

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>"
    },
    "name": "plan_slices"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideNo'buy' walks the asks, 'sell' walks the bids.buy
venueNoVenue to read. Default 'bybit', the only adapter so far.bybit
levelsNoDepth levels per side to request. Default 200, the venue maximum.
symbolYesPair in any spelling: 'BTC/USDT', 'BTCUSDT' or 'btc-usdt'.
fee_bpsNoTaker fee in basis points, per side; a round trip costs twice this. Default 10 (0.10%), Bybit's standard spot taker fee. Put in your own tier's number if it differs.
size_usdNoNotional per child order. Omit to split the target evenly.
budget_bpsNoCost ceiling against the mid, in basis points. Slices whose cumulative cost passes it are flagged, not dropped.
max_slicesNoMaximum child orders. Default 8, maximum 20.
target_usdNoTotal dollar amount to place.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered by structured data. The description usefully adds that children are sequenced against leftover depth and capped by the venue ceiling, and that over-budget slices are flagged rather than dropped. It stops short of saying explicitly that no orders are placed, which is the single most important behavioral fact for an execution-planning tool.

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?

A single dense sentence that front-loads the core action before the pricing rule and the outputs. Every clause carries information, though the sentence is long enough that splitting the reporting behavior into its own line would read better.

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?

Nine parameters at full schema coverage plus an output schema mean the description needn't explain returns, and it still summarizes them. The main remaining gap for a read-only, open-world planning tool is the explicit assurance that nothing is submitted to the venue.

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 coverage is 100%, so defaults, fee tiers, and the buy/sell semantics are already documented per parameter. The description only echoes a few of these ideas ('capped by the venue's market-order ceiling', 'the size that fits the budget') without adding format or interaction detail, so a baseline 3 is appropriate.

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?

States a concrete verb and resource ('cuts one parent order into sequential child orders') plus the pricing rule (residual depth) and the venue ceiling constraint. It clearly is a planning tool rather than an order placer, but it never names a sibling (e.g., batch_slippage) to sharpen the distinction.

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?

The use case is implied: splitting a large target into child orders under a cost budget, with mid-relative budget checks. There is no explicit 'use this when…' statement, no mention of when to prefer batch_slippage or check_order, and no stated prerequisites beyond the implicit need for venue depth.

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