Skip to main content
Glama

replay_session

Measure token savings from session compression by replaying captured tool calls through configurable mechanisms and reporting actual tool-result reduction. Read-only analysis; no model calls.

Instructions

Reproduce the shipped compression mechanisms over one captured session's tool calls and report the real tool-result token reduction. Strictly read-only: no model calls, no writes, no re-execution of historical commands.

session_id defaults to your most recent complete session. mechanisms defaults to all three (range_cache, shell_compaction, hash_dedupe); pass a subset (e.g. ["shell_compaction"]) to isolate one mechanism's effect. A session below the size/turn thresholds is refused with the specific failing constraint (verdict "insufficient_data") rather than given an unstable number.

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
min_turnsNo
mechanismsNo
session_idNo
min_tool_callsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description fully carries the behavioral burden. It explicitly discloses read-only constraints ('no model calls, no writes, no re-execution'), defaulting behavior, refusal with verdict 'insufficient_data', and override semantics. This is exemplary transparency beyond the structured schema.

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 with the core purpose, followed by safety and parameter behavior. Every sentence adds useful information, and the dense but organized structure avoids waste.

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 4-parameter tool with no annotations and an output schema, the description covers purpose, safety, defaults, failure behavior, and parameter semantics completely. Nothing an agent needs to invoke it correctly is missing.

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

Parameters5/5

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

Schema description coverage is 0%, and the description compensates fully: it explains session_id's default, mechanisms' default values and subset usage, and min_turns/min_tool_calls overrides with PRD context. Every parameter receives meaningful semantic clarification.

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?

States a specific verb ('Reproduce'), precise resource ('one captured session's tool calls'), and measurable outcome ('report the real tool-result token reduction'). It distinguishes itself from sibling replay tools by scoping to a single session and compression mechanisms, so an agent can tell what it does without opening the schema.

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?

Provides clear context: which session is used by default, how to isolate a mechanism, and how threshold overrides work. It does not explicitly name sibling alternatives or state when not to use this tool, but the usage context is specific enough to guide selection.

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