Skip to main content
Glama

Fill realism

paper_realism
Idempotent

How honestly your paper fills are simulated. By default a market order fills at the live price with no slippage and maintenance margin is a flat 0.5%, which is easier than a real exchange and increasingly so as a position grows. Pass slippage and/or margin_tiers to turn either on, and margin_venue to build on a named venue’s published maintenance-margin rate (Binance 0.40%, Bybit 0.50%, MEXC 0.10%, Kraken 0.60%, Hyperliquid 1.25%, Coinbase 1.33%). Reading returns your setting, every venue rate and the whole size-tier ladder, so a liquidation price never has to be reverse-engineered. Positions keep the margin they were filled with. Requires an API key.

Input Schema

NameRequiredDescriptionDefault
slippageNoFill against yourself the way a real order book does: 0.01% crypto majors, 0.05% other crypto, 0.005% forex, 0.02% stocks/metals/indices.
margin_tiersNoRaise maintenance margin with position size, as an exchange risk-limit table does, so a large position is liquidated sooner.
margin_venueNobinance | bybit | okx | bitget | mexc | kucoin | gate | kraken | hyperliquid | coinbase, or "marginpad" to reset. Omit every field to read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (idempotent, non-destructive), the description discloses the concrete defaults that apply when nothing is passed (live-price fills, no slippage, flat 0.5% maintenance margin), warns that the default diverges further from reality as position size grows, states the API-key requirement, and notes that open positions retain the margin they were filled with.

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?

Front-loaded with the purpose and defaults, then the write path, then the read path — logical order. The parenthetical venue-rate list is long but each value is decision-relevant; nothing else is padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description still tells the agent what a read returns (current setting, all venue rates, the full size-tier ladder) and covers the auth requirement, defaults, and persistence semantics, so nothing needed to call it correctly is missing.

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?

Schema coverage is 100%, so the baseline is 3, and the description earns above that by adding information the schema lacks: the venue maintenance-margin rates behind each margin_venue value and the default slippage/ margin behavior that the booleans toggle away from.

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 description states exactly what the tool governs — the realism of paper-trade fills and maintenance margin — and documents both modes (omit fields to read, pass fields to configure). Its scope is unique among siblings like paper_fees and paper_sltp, so there is no ambiguity about which tool an agent should reach for.

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 gives clear operative guidance: pass slippage and/or margin_tiers to turn realism on, pass margin_venue to adopt a named venue's rate, or omit every field to read. It never states when realism should *not* be enabled (e.g. when reproducing a default backtest), but the use context is otherwise unambiguous.

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.