Skip to main content
Glama
Batch Slippage Bybit

Batch Slippage Bybit

by tordagaz-ops

Size many pairs at once

batch_slippage
Read-only

Price a grid of Bybit spot pairs at multiple dollar sizes in one call, walking each order book to report slippage, fees, and total cost after quantity and notional limits.

Instructions

Prices a grid of pairs by dollar sizes: every pair against every size, in one call. Each row walks the real order book for that size, then applies Bybit's quantity step, minimum and maximum before reporting. Use it to find how far a size can grow on each pair before the cost bites.

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": {
      "symbols": "<symbols>"
    },
    "name": "batch_slippage"
  }
}

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.
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.
symbolsYesPairs to size in one pass. Up to 12 pairs, one order book each.
sizes_usdNoDollar sizes to price, in USDT. Up to 8 sizes; every pair is priced at every size.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the description doesn't need to reassert read-onlyness; instead it adds real behavioral detail: each row walks the live order book, then applies the venue's quantity step, minimum and maximum before reporting. That tells the agent output is post-filtered/venue-constrained rather than raw book data, which is genuinely beyond the annotations. It stops short of describing execution cost, latency, or failure behavior when a size exceeds available depth.

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?

Three sentences, front-loaded with the core what, then the mechanics, then the use case — nothing is wasted and there is no filler. The closing clause "before the cost bites" is slightly colorful for a technical definition but still conveys the slippage intent.

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 at full schema coverage, an output schema to explain return values, and annotations covering safety/open-world traits, the description fills the remaining gap by explaining the pricing pipeline (book walk → venue filters → report). Only the behavior at the 12-pair / 8-size limits and what a truncated or unfillable row looks like is unaddressed.

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 the schema already documents side, venue, levels, fee_bps, symbols and sizes_usd thoroughly. The description's contribution is mainly reinforcing the symbols × sizes_usd cross-product and the role of the venue step/min/max filters, which the schema largely states already. Baseline 3 applies when the schema carries the parameter burden.

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?

"Prices a grid of pairs by dollar sizes: every pair against every size, in one call" states a specific verb (prices), a specific resource (grid of pairs × dollar sizes), and the cardinality trait (batch/cross-product) in one line. None of the siblings (check_order, list_instruments, plan_slices) overlap with this batching-and-sizing behavior, so an agent can route to it unambiguously.

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?

"Use it to find how far a size can grow on each pair before the cost bites" gives one concrete use case, which is more than nothing. However, it never states when not to use it, nor does it point to a single-pair or planning alternative (e.g. plan_slices) for cases where a grid is overkill, so the routing inference is left implicit.

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