Skip to main content
Glama

replay_corpus

Replay captured AI coding sessions through shipped compression mechanisms to report real token reduction, verifying that compression works on your actual session history.

Instructions

Reproduce the shipped compression mechanisms across a filtered corpus of captured sessions and report the aggregate real tool-result token reduction. Strictly read-only.

days is an exact rolling ingestion window over the caller's own sessions (default 30). For source="codex", stored model names must start with gpt- or codex-. model_family/project/session_category further narrow the corpus. limit is the target fully eligible session count (max 100); Replay scans up to 4x that many recent session records, capped at 100, and stops when it reaches the target or exhausts the scan. Every result states sessions considered vs eligible and why the rest were excluded.

min_turns/min_tool_calls override the turn-count and tool-call-count floors (default 5/5; PRD §6's documented floors are 10/10) — reported in the output's provenance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo
limitNo
sourceNoall
projectNo
min_turnsNo
mechanismsNo
model_familyNo
min_tool_callsNo
session_categoryNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses strict read-only behavior, exact rolling ingestion window semantics, model-name constraints for source='codex', the scan cap of 4x limit, and result reporting of considered vs eligible sessions. Minor gap: it doesn't state whether results are returned incrementally or only when complete, and doesn't detail output shape beyond provenance, but an output schema exists.

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 compact for 9 parameters and uses multiple sentences purposefully. It front-loads the core purpose and read-only nature, then explains key parameters in order. The PRD floors aside is slightly dense but valuable. Not every parameter gets an example, but no sentence is wasted.

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

Completeness5/5

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

For a complex retrieval/replay tool with 9 optional parameters, no annotations, and a rich output-schema, the description is thorough. It covers the selection algorithm, eligibility thresholds, and provenance reporting. The presence of the output schema fills return-shape details, so the description is complete enough for an agent to invoke correctly.

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 0%, so the description must compensate. The text explains days, source, model_family/project/session_category, limit, min_turns/min_tool_calls, and mechanisms implicitly. It grounds the default floors (5/5) against PRD §6's documented floors (10/10). It omits a detailed explanation of 'mechanisms' and 'project' semantics, but given the filter set is mostly intuitive, the description adds substantial meaning over the bare schema.

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 begins with a specific verb and resource ('Reproduce the shipped compression mechanisms... report the aggregate real tool-result token reduction'), clearly distinguishing it as a batch replay/evaluation tool over a corpus. It also contrasts with siblings like replay_session and replay_compare by its corpus-wide aggregate focus.

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

Usage Guidelines5/5

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

The description explicitly explains when to use the tool, how the corpus is filtered, and which parameters narrow it. It communicates the relationship between the 'limit' parameter and scan behavior, the default vs PRD floors, and includes exclusions ('why the rest were excluded'). While it doesn't name an alternative tool explicitly, it provides clear and detailed guidance on invocation context.

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

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/ReclaimLLM/RCLM'

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