Skip to main content
Glama
simple-vwap-slippage

simple-vwap-slippage

Compare slippage across sizes

get_slippage_curve
Read-only

Prices one order at multiple sizes against a single order-book snapshot to build a comparable slippage curve, returning VWAP, slippage in basis points, and fillability per size.

Instructions

Price the same order at several sizes against one snapshot of the book, which is what you want for a slippage table: separate calls would each fetch a different book and the points would not be comparable. Returns one point per size with its VWAP, slippage in basis points, levels consumed and whether it was fully fillable. Example: symbol='BTCUSDT', side='sell', amounts=[100, 1000, 10000].

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>",
      "side": "<side>",
      "amounts": "<amounts>"
    },
    "name": "get_slippage_curve"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideYes'buy' to consume the asks, 'sell' to consume the bids.
symbolYesSpot pair in Bybit notation, base coin first, such as 'BTCUSDT', 'ETHUSDT' or 'PEPEUSDC'. Case does not matter here.
amountsYesTwo to twelve order sizes to price against the same book, for example [100, 1000, 10000].
max_levelsNoHow deep to walk the book while pricing, from 1 to 1000. The default of 200 covers most retail orders; raise it for large ones.
amount_unitNo'quote' sizes the order by how much USDT you spend or receive; 'base' by how many coins you buy or sell. The default is 'quote' for a buy and 'base' for a sell, which is how each side is normally described.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/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 safety profile is covered. The description adds genuinely non-obvious behavioral context: all sizes are priced against one book snapshot, and each result includes VWAP, slippage in bps, levels consumed and fillability. It says nothing about rate limits or failure when the book is too shallow, which keeps it from a 5.

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?

Three sentences, each doing distinct work: the operation, the rationale that rules out the naive alternative, the return shape, then an example. Front-loaded with the core action and free of filler.

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?

An output schema exists so return values needn't be spelled out, and annotations carry the safety profile; the description covers the mechanism and an example call. Minor gaps remain around edge behavior (insufficient depth, whether amounts must be positive or ordered), but nothing an agent needs to invoke it correctly is missing.

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 symbol notation, side semantics, amount_unit defaults, max_levels depth and the 2-12 size bound are all documented in the schema itself. The description's example tuple restates what the schema already shows, adding only the reminder that all amounts share one snapshot.

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 specific verb and resource: prices the same order at several sizes against one snapshot of the book, and explains the output as a curve of points per size. It implicitly distinguishes itself from per-size quoting tools by warning that separate calls would each fetch a different book, though no sibling is named outright.

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?

Gives a clear use case ("what you want for a slippage table") and an explicit anti-pattern (separate calls produce incomparable points). It stops short of naming which sibling tool performs the single-size quote, so the agent must infer the alternative.

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