Skip to main content
Glama
simple-vwap-slippage

simple-vwap-slippage

Validate an order against exchange rules

check_order_constraints
Read-only

Validates a proposed Bybit spot order against the pair's trading rules before sending, checking quantity and notional limits, precision, and price tick. Returns valid=true or the broken rules.

Instructions

Check a proposed order against the pair's published rules before sending it: minimum and maximum quantity, minimum and maximum notional, quantity precision and price tick. Returns valid=true with an empty issue list, or the exact rules broken with their limits. This validates only; nothing is sent to the exchange. Example: symbol='BTCUSDT', quantity=0.0001, price=95000.

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_constraints"
  }
}

Input Schema

NameRequiredDescriptionDefault
priceNoOptional limit price in the quote currency. Checked against the pair's tick size.
symbolYesSpot pair in Bybit notation, base coin first, such as 'BTCUSDT', 'ETHUSDT' or 'PEPEUSDC'. Case does not matter here.
quantityYesOrder size in base coins, for example 0.05 BTC.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true; the description reinforces the read-only profile with "nothing is sent to the exchange" and names the precise rule categories that will be evaluated. Return shape is described (valid=true and empty issue list, or the broken rules with limits), which is somewhat redundant against the existing output schema but adds the semantics of the issue list. No auth, rate-limit, or failure-mode behavior is mentioned.

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 compact sentences plus a concrete example, with the core purpose and the read-only guarantee front-loaded. The return-value sentence partially duplicates the output schema and could be trimmed, but nothing is 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?

With full schema coverage, annotations, and an output schema, the remaining burden is behavioral, and the description covers what is checked and that no order is placed. The one real gap is the null/omitted price case, where it is unclear whether notional checks are skipped or fail.

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, quantity, and price are already documented, and the description's added meaning is mostly the worked example mapping symbol='BTCUSDT', quantity=0.0001, price=95000. It does not clarify edge semantics such as what happens when the optional price is omitted, so it barely exceeds the schema-documented baseline.

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?

"Check a proposed order against the pair's published rules" pairs a specific verb with a specific resource and then enumerates the exact rules (min/max quantity, min/max notional, precision, tick). The clause "This validates only; nothing is sent to the exchange" cleanly separates it from any order-execution sibling, so an agent can select it without opening the schema.

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 phrase "before sending it" gives a clear trigger point in the workflow, and "This validates only" tells the agent not to expect execution. It stops short of naming an alternative tool or stating when-not to use it (e.g. after an order already exists), so it is strong context rather than a complete routing rule.

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