Skip to main content
Glama

replay_trace_bundle

Replays recorded traces offline and diffs P0/P1 protocol breaches against an optional baseline directory to audit streaming API behavior and timing issues.

Instructions

Replay recorded traces offline and diff P0/P1 breaches against an optional baseline directory.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "replay_trace_bundle"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to a local .trace.jsonl recording or a directory of recordings.
baseline_dirNoOptional directory with baseline recordings at matching relative paths.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It hints at replay and P0/P1 severity diffing but doesn't say whether replay starts a process, what side effects occur, whether it writes output files, or what 'replay' actually does operationally.

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?

A single front-loaded sentence with no filler. It is dense but appropriately sized, though it compresses several concepts (replay, offline, severity diff, baseline) into one clause without elaboration.

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?

For a mutation-capable replay tool with no annotations and no output schema, the description is thin. It doesn't explain what P0/P1 breaches mean, what the diff output looks like, or preconditions such as recording format validity.

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 coverage is 100% and both parameters are documented in-schema, so the baseline is 3. The description adds meaning by explaining that baseline_dir is used to diff P0/P1 breaches, clarifying intent beyond the schema's 'matching relative paths' phrasing.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (replay) and resource (recorded traces), plus the secondary diff-against-baseline behavior. It is distinguishable from read-only siblings like audit_trace_file, though it doesn't explicitly name a when-to-use alternative.

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?

Implies offline replay usage and mentions the optional baseline diff, but gives no explicit guidance on when to pick this over audit_trace_file or compare_endpoints. Usage must be inferred from the word 'offline' and 'baseline'.

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