replay_corpus
Reproduce compression mechanisms across filtered captured sessions to report aggregate real tool-result token reduction. Strictly read-only.
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 widest
authorized session scope (default 30): team leads include their teams,
admins include their organization, and other callers follow org sharing
settings. 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 its effective scope, 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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "replay_corpus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| limit | No | ||
| source | No | all | |
| project | No | ||
| min_turns | No | ||
| mechanisms | No | ||
| model_family | No | ||
| min_tool_calls | No | ||
| session_category | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||