Skip to main content
Glama
constripacity

claude-replay

replay_export

Export a Claude Code session as a trace in HTML, JSON, or Markdown format to a specified directory.

Instructions

Render a session as a self-contained trace (html, json, or md) and return the output path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoExport format (default: html)
outputNoOutput directory (default: ~/.claude-replay/exports)
session_idNoSession ID (default: most recent)
Behavior3/5

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

No annotations are present, so the description carries full burden. It states the tool renders a trace and returns a path, but does not disclose whether it modifies state (e.g., creates files on disk, side effects), or if there are permissions, size limits, or blocking behavior. The description adds some value beyond the schema (output path return) but lacks rich behavioral context.

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?

Single sentence with no wasted words. It front-loads the action ('Render a session') and ends with the output ('return the output path'). Perfectly sized for the complexity.

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

Completeness3/5

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

Given 3 parameters (all optional, no output schema), the description covers the core transformation but lacks detail on return format (just 'path'), side effects (file creation), and error cases (missing session). Adequate but not complete for a file-exporting tool.

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 description coverage is 100%, so baseline is 3. The description adds value by explaining the tool takes a session, renders it as a trace, and returns a path, which provides semantic context for the unspecified session_id parameter and the default behavior. This elevates it above baseline.

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 uses specific verbs ('Render', 'return') and resources ('session as a self-contained trace'), explicitly naming the output formats ('html, json, or md') and the outcome ('output path'). This clearly distinguishes it from sibling tools like replay_status or replay_diff.

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 implies use for exporting a session trace, but does not explicitly state when to use this over alternatives like replay_sessions (list sessions) or replay_tag (tag sessions). No when-not-to-use guidance or exclusion criteria are provided.

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/constripacity/Claude-Replay'

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