Skip to main content
Glama

web_replay_cassette

Replay recorded HAR-lite cassettes offline to deterministically reproduce HTTP responses for testing, with optional fault injection and zero live sockets.

Instructions

Replay a recorded HAR-lite cassette deterministically offline with optional fault injection (zero live sockets).

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": {
      "cassette_path": "<cassette_path>"
    },
    "name": "web_replay_cassette"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoRequest path to replay (default: '/').
faultNoOptional fault injection mode.
methodNoHTTP method to match in cassette (default: 'GET').
as_markdownNoConvert HTML replay body to GFM Markdown (default: false).
strict_orderNoRequire strict sequential entry matching (default: false).
cassette_pathYesWorkspace-relative path to the cassette JSON file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and discloses key traits: deterministic replay, offline operation, zero live sockets, and optional fault injection. It does not state whether the operation is strictly read-only or describe error/return behavior, leaving some gaps.

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?

A single, front-loaded sentence with no redundant wording. Every element (verb, resource, determinism, offline, fault injection, zero sockets) earns its place.

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?

For a six-parameter tool with no annotations and no output schema, the description covers purpose and key behavioral constraints but omits return values, error handling, and explicit alternative selection. It is adequate but has clear gaps.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all six parameters. The description mentions 'fault injection' and 'cassette' but adds no syntax, format, or meaning beyond what the schema provides; baseline 3 applies.

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?

The description uses a specific verb ('Replay') and resource ('recorded HAR-lite cassette'), making the tool's function clear. It does not explicitly name or differentiate from siblings like web_record_cassette or web_fetch, so it falls short of full sibling differentiation.

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 phrase 'deterministically offline' and 'zero live sockets' implies the use case (offline replay without network), but there is no explicit guidance on when to choose this over web_record_cassette, web_fetch, or other siblings. Usage is only implied.

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