Skip to main content
Glama
@racehooks/mcp

@racehooks/mcp

Official

Prepare Replay

prepare_replay
Idempotent

Prepares a session for recorded playback by generating its playback artifact when not cached; use get_replay_status to confirm readiness.

Instructions

Prepare a session for recorded playback, generating its playback artifact if not already cached. Check readiness with get_replay_status.

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": {
      "sessionId": "<sessionId>"
    },
    "name": "prepare_replay"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYesSession ID from list_replay_sessions or get_demo_session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, so the description's 'if not already cached' wording usefully explains the caching mechanism behind idempotency. Pointing to get_replay_status implicitly signals that artifact generation may not complete synchronously, which is valuable beyond the structured fields.

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?

Two short sentences, front-loaded with the action and side effect, followed by the follow-up call. No 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 single-parameter preparation tool with no output schema, the description covers purpose, side effect, and the companion verification step. It could say more about timing or failure behavior, but an agent has enough to invoke it correctly.

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 coverage is 100% and the sessionId parameter already documents its source tools (list_replay_sessions, get_demo_session). The description adds no further parameter meaning, 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?

The description uses a specific verb and resource ('Prepare a session for recorded playback') and adds the key side effect of generating the playback artifact. It doesn't explicitly differentiate against the many sibling read tools, but the pointer to get_replay_status gives a functional anchor.

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 second sentence establishes a clear prepare-then-verify sequence with get_replay_status, which tells the agent when this tool is appropriate relative to its companion. It stops short of stating exclusions or what to do if preparation fails, but the operational context is clear.

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