Skip to main content
Glama

replay_trade

Execute simulated buy, sell, or close trades against historical bar replay data for practice paper trading. Requires active Replay mode.

Instructions

Execute a simulated trade action in replay mode (buy, sell, or close position). WHEN TO USE: Call when taking practice trades against historical bar replay data. SIDE EFFECTS: STATE_MUTATING (Updates simulated paper trading position in replay). LIMITATIONS: Requires Replay mode to be active.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesTrade action: buy, sell, or close

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it declares STATE_MUTATING, explains that it updates a simulated paper-trading position, and states the replay-mode precondition. It stops short of describing failure behavior (e.g. what happens if replay is not active) or what is returned.

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?

Front-loaded purpose sentence followed by clearly labeled WHEN TO USE, SIDE EFFECTS, and LIMITATIONS sections. Every sentence earns its place with zero 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?

For a one-parameter, annotation-free mutation tool with no output schema, the description covers purpose, trigger, mutation semantics, and precondition. The only gap is the absence of any indication of the result of a successful or failed trade.

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 the single 'action' parameter is already documented with its buy/sell/close values. The description repeats those values but adds no syntax, constraints, or defaults beyond the schema, so the baseline 3 applies.

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 (execute), resource (simulated trade action), and scope (replay mode), plus the concrete actions buy/sell/close. It implicitly separates itself from replay_start/replay_step/replay_status siblings through the 'trade action in replay mode' framing, though it never names an alternative.

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 'WHEN TO USE' line gives a clear triggering context ('taking practice trades against historical bar replay data'). The LIMITATIONS line adds a precondition (replay mode must be active), but no explicit when-not or alternatives are offered.

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