Skip to main content
Glama

script_rehearse

Read-onlyIdempotent

Step a cubicle.script v1 over the deck's own bars with the deterministic reference runner (cubicle-script run): one frame per bar (state, every gate's truth and the two sides it compared, fields, vars, position, order, fill, log), the summary (trades, wins, sum R, final state, blocked counts) and the frame hash — the run's receipt. Same script, params and window → the same hash (cached). Window defaults: the previous weekday's cash session (13:30–20:00 UTC) for NQ/ES, the last sealed 8 h for BTC/ETH/SOL; at most 6,000 bars. Pass script (YAML) or example (bender-corridor, ny-open-breakout, range-aware-stop); params replaces defaults within min..max and changes the hash. Metered on the run, not the bars.

Input Schema

NameRequiredDescriptionDefault
tfNodefault 1m
toNounix seconds (in the past)
fromNounix seconds; with `to`, an explicit sealed window
hoursNocrypto only: the last N sealed hours (default 8)
framesNohow many frames to return from the END of the run (default 60, max 600); the summary covers the whole run
marketNodefault NQ
paramsNoparam overrides {name: number}, clamped to the script's min..max
scriptNothe cubicle.script v1 YAML text (or use example)
exampleNoa bundled example instead of script: bender-corridor | ny-open-breakout | range-aware-stop

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, but the description adds valuable details beyond them: deterministic hashing with caching, metering on the run rather than the bars, per-market default windows, and a 6,000-bar cap. It does not contradict annotations and adds meaningful operational context.

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?

The description is dense but front-loads the core operation and avoids filler. It is a single long paragraph rather than structured sections, but every sentence carries operational information relevant to invoking the tool.

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 9-parameter rehearsal tool with no output schema, the description explains the returned frames and summary in enough detail, along with determinism and default windows. It does not cover error behavior or validation failure modes, but it is otherwise complete enough for correct invocation.

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, but the description adds cross-parameter meaning: window defaults differ for NQ/ES vs crypto, `hours` is crypto-only, `frames` returns from the end with a max of 600, `params` replaces defaults within min..max and changes the hash, and `script` vs `example` are mutually alternative inputs.

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?

The description states a specific verb and resource: 'Step a cubicle.script v1 over the deck's own bars with the deterministic reference runner.' It is clearly a rehearsal/backtest operation, but it does not explicitly contrast itself with siblings like script_validate or replay_open, so sibling differentiation is only implicit.

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?

The description provides operational context such as passing a script or a bundled example and the default windows per market, but it never states when to use this tool versus alternatives. Usage is implied by the 'rehearse' framing rather than explicitly guided.

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