Skip to main content
Glama

sandbox

A simulated Decibel exchange on recorded Decibel prices (every minute) and order books (20 levels: the live WebSocket book to the second since 18 Nov 2026 04:51 UTC, before that a snapshot about every 10 minutes since 15 Nov 2026 16:00 UTC): test a bot's order logic without keys or money. Nothing is sent to Decibel. No registration for the last 7 days of recorded data; registered agents (free) can go further back. Taker orders consume the recorded levels: what one order takes is gone for the next (same step, TP/SL, margin calls) until the next recorded snapshot; beyond the last level nothing fills (IOC/market: partial fill, rest cancelled with the reason). The live WebSocket book is used as recorded at that instant (book_source "live"). An older snapshot (book_source "snapshot") is moved with the mark, sizes as recorded (book_shifted): all of it when the mark is outside the recorded spread, otherwise only where that is worse for the taker; then a buy never pays less than mark + half the recorded spread. Decibel's mark is median(oracle, book mid, basis), often a few bps outside the live book, so a shifted fill can be that far from the real book either way. With no book recorded at that time (before 15 Nov 2026 16:00 UTC): a synthetic book from the market's median recorded book, consumed level by level (mark_capped). A post-only order is checked on the next step against the book a taker meets (recorded or synthetic): cancelled only if a buy is at or above its best ask (a sell at or below its best bid). Resting limits fill only up to the volume traded through their price: recorded trades, or before them the 1-minute candles (volume x the share of the candle's range past the price); with neither, they don't fill. The clock stops where prices and every market's trades are recorded (a few minutes behind now). Each fill says what priced it in priced_by: book, book_shifted, mark_capped, trades or candle, and has a fill_id. "fills" (since: ms, limit: up to 500, after_fill_id: the previous page's cursor) pages through the fill history, which keeps only the LAST 2000 fills of the session (older ones are dropped: save them as you go); step already returns every fill of that step in events. action="start" (start_hours_ago: where the clock begins, counted back from the end of the recorded data, default 6, at most 168 (7 days) for guests and 336 for registered agents, whose api_key in the 'Authorization: Bearer' header is enough; 30 new sessions an hour and 150 a day per IP; maker_fill "through" = a resting limit fills only when the price goes through it, default, or "touch", or "dlp" = through plus Decibel's DLP vault taking a limit that rests at the best bid/ask or inside the spread, whole remainder at once: drawn once per order when placed, from real post-only orders (about 40% of them, by market, after a median of 15 seconds, within 2 minutes; trades before that instant still fill first, and the fill carries that instant in t); faster fills are not free: live, the DLP takes them about 4 bps better than the oracle; fills say priced_by "dlp", same result for the same session with any step size. With "dlp" a post-only order is also checked on the book of the instant it would reach Decibel: placement plus a delay drawn per order from live transactions, median 0.7 s, at most 2.4 s; if the book crossed its price by then it is cancelled, as Decibel does) returns a session_id to pass to every other action. Then: "place" (market e.g. "BTC", side buy|sell, size, price, time_in_force gtc|post_only|ioc|market, reduce_only, client_order_id; result.order_id), "cancel" (order_id), "order" (order_id or client_order_id: status and Decibel's cancellation reason), "set_leverage" (market, leverage), "set_margin_mode" (market, margin_mode cross|isolated), "add_margin" (market, amount: isolated only), "set_tpsl" (market, take_profit, stop_loss: needs an open position), "step" (minutes: 0-240, advance the clock; orders are only acknowledged when placed and fill or cancel on the next step, like on Decibel; in the same call, before the clock moves: cancel_ids, then orders = a list of place objects {market, side, size, price, time_in_force, reduce_only, client_order_id}, each with its own result in cancelled / placed; watch = markets whose book and mark come back in books at the new clock, depth levels, default 5 (a market that cannot be read gets an error of its own); a step that answers with an error changed nothing, so it is safe to retry; until_event = minutes is the most, the clock stops after the first minute with a fill, cancel, TP/SL or liquidation), "state" (also order_history with reasons, events, liquidation_price, maintenance_margin, available_margin; funding_paid > 0 = paid, < 0 = received), "market" (read-only, at the session clock: without market every market's mark, tick, lot, min size and max leverage; with market its mark, funding, rules and the book a taker order would meet on the next step, with priced_by and the best post-only prices that rest), "share" (public read-only copy; api_key shows your handle). The step response carries data_notices when the data behind your fills changes: a real order book becomes synthetic (or the reverse), or recorded trades become 1-minute candles (or the reverse). Decibel's rules apply: tick and lot size, minimum size, max leverage, post-only and IOC violations, reduce-only trimming, cross and isolated margin, two-stage liquidation (margin call to 105% of maintenance, backstop below 2/3), maker 1.5 / taker 4.5 bps, hourly funding. Resting limits take the volume up to the session clock at every step, so cancelling after a step loses nothing. Calls: 600 a minute per IP; registered agents that also send their api_key as an "Authorization: Bearer" header get 2,400 a minute (then 429 rate_limited). See pitbi.app/sandbox.

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": {
      "action": "<action>"
    },
    "name": "sandbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideNo
sizeNo
depthNo
limitNo
priceNo
sinceNo
watchNo
actionYes
amountNo
marketNo
ordersNo
api_keyNoOptional: your api_key, only to publish under your @handle. The 'Authorization: Bearer' header alone never publishes your name (it still marks you as registered: longer start window in the sandbox, higher rate limit), so you stay private.
minutesNo
leverageNo
order_idNo
stop_lossNo
cancel_idsNo
maker_fillNothrough
session_idNo
margin_modeNo
reduce_onlyNo
take_profitNo
until_eventNo
after_fill_idNo
time_in_forceNogtc
client_order_idNo
start_hours_agoNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / api_key / description
      Previous value: -"Optional: your api_key, only to publish under your @handle. The 'Authorization: Bearer' header alone is not used here, so you stay private."New value: +"Optional: your api_key, only to publish under your @handle. The 'Authorization: Bearer' header alone never publishes your name (it still marks you as registered: longer start window in the sandbox, higher rate limit), so you stay private."
  2. Changed1 schema field changed
    • addedInput schema / properties / api_key / description
      Added value: +"Optional: your api_key, only to publish under your @handle. The 'Authorization: Bearer' header alone is not used here, so you stay private."
  3. Changed5 schema fields changed
    • addedInput schema / properties / cancel_ids
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "integer"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Cancel Ids"
      +}
    • addedInput schema / properties / depth
      Added value: +{
      +  "default": 5,
      +  "title": "Depth",
      +  "type": "integer"
      +}
    • addedInput schema / properties / orders
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Orders"
      +}
    • addedInput schema / properties / until_event
      Added value: +{
      +  "default": false,
      +  "title": "Until Event",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / watch
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Watch"
      +}
  4. Changed3 schema fields changed
    • addedInput schema / properties / after_fill_id
      Added value: +{
      +  "default": 0,
      +  "title": "After Fill Id",
      +  "type": "integer"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 100,
      +  "title": "Limit",
      +  "type": "integer"
      +}
    • addedInput schema / properties / since
      Added value: +{
      +  "default": 0,
      +  "title": "Since",
      +  "type": "integer"
      +}
  5. Changed4 schema fields changed
    • addedInput schema / properties / amount
      Added value: +{
      +  "default": 0,
      +  "title": "Amount",
      +  "type": "number"
      +}
    • addedInput schema / properties / api_key
      Added value: +{
      +  "default": "",
      +  "title": "Api Key",
      +  "type": "string"
      +}
    • addedInput schema / properties / maker_fill
      Added value: +{
      +  "default": "through",
      +  "title": "Maker Fill",
      +  "type": "string"
      +}
    • addedInput schema / properties / margin_mode
      Added value: +{
      +  "default": "",
      +  "title": "Margin Mode",
      +  "type": "string"
      +}
  6. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false, openWorldHint=false, so the description carries real weight and delivers: taker orders consume recorded levels, fills beyond the last level don't execute, fill history keeps only the LAST 2000 fills (older dropped), a failed step changed nothing and is safe to retry, session/rate limits (30 new sessions/hour, 150/day per IP; 600 vs 2,400 calls/min), and data_notices when backing data degrades. This is unusually rich behavioral disclosure well beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is valuable but delivered as a single dense wall of deeply nested parentheticals, with the action catalog buried mid-paragraph rather than front-loaded. Key operational facts (session_id, action list) compete with low-priority market-microstructure detail (mark = median(oracle, book mid, basis)), making it hard to parse in one pass.

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?

For a 27-parameter simulation tool with an output schema, the description is remarkably complete: it covers session lifecycle, fill mechanics, book-source semantics, and rate limits. The main shortfalls are the ambiguous until_event phrasing and reliance on prose for parameter bounds where the schema is silent.

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

Parameters4/5

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

With only 4% schema description coverage, the description must compensate, and it largely does: it enumerates place fields (market, side, size, price, time_in_force, reduce_only, client_order_id), step's cancel_ids/orders/watch/depth/until_event, fills' since/limit/after_fill_id, and the leverage/margin/tpsl params. Gaps remain: 'until_event' is described as if it were a minutes value ('until_event = minutes is the most') while the schema types it as a boolean, and a few numeric params get no bounds in prose.

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?

The opening sentence states a specific resource (a simulated Decibel exchange on recorded prices/order books) and a concrete goal (test a bot's order logic without keys or money), and immediately distinguishes itself from real trading: 'Nothing is sent to Decibel.' An agent can tell this is a paper-trading simulator, not the live data/market tools among the siblings.

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?

It clearly frames the use case (test bot order logic without keys or money) and gives per-action routing: 'start' returns a session_id to pass to every other action, then place/cancel/order/set_leverage/step/state/market/share are each described with their trigger conditions. It also explains guest vs registered access windows. What it lacks is an explicit pointer to sibling alternatives (e.g. decibel_data for real data), so it stops short of full when/when-not routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources