Skip to main content
Glama

replay_file

Reconstruct a file's state from a past Claude Code session by replaying every edit verbatim from the session JSONL, up to a specified event.

Instructions

Reconstruct the state of a file at a point in a past Claude Code session. Applies every edit verbatim from the session JSONL — no summarization.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
file_pathYes
at_event_idNoOptional: reconstruct up to this event
Behavior2/5

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

Description says 'applies every edit verbatim' but does not clarify whether this is a read operation (reconstructing in memory) or a write operation (modifying files). No mention of side effects, required permissions, or error states. No annotations exist to compensate.

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

Conciseness3/5

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

Two sentences with no unnecessary words, but lacks critical details that would improve its value. Front-loading could be better (e.g., stating the action and key parameters upfront). Appropriate size but content is thin.

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

Completeness2/5

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

No output schema and no description of return value. With no annotations and limited parameter info, the description does not sufficiently explain what the agent can expect after invocation. Missing when and why to use this tool.

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

Parameters2/5

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

Schema description coverage is only 33% (only at_event_id has a description). The description does not add meaning to session_id or file_path beyond their names. No parameter details or usage context provided.

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?

Clearly states verb 'reconstruct' and resource 'state of a file at a point in a past Claude Code session'. Distinguishes from siblings like get_file_history and get_session_timeline by specifying verbatim application without summarization.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives. Does not mention prerequisites, limitations, or when to prefer get_file_history or other tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Wynelson94/longhand'

If you have feedback or need assistance with the MCP directory API, please join our Discord server