Skip to main content
Glama

get_session_replay

Read a session replay run to diagnose failed or incorrect experiment replays, returning status, error details, setup and cleanup logs, produced session IDs, and trace IDs.

Instructions

Reads one replay run. Free to call.

Experiment support, for when you need it: to see why an Experiment's replay failed or looks wrong, read its run. Get the id from a row's session_replay_run_id in get_experiment_run (the row is the Session the replay produced), or from replay_session. The run has status (CREATED, STARTED, ENDED or FAILED), error_detail when it failed, setup_logs and cleanup_logs from the setup and cleanup steps, session_id (the new Session the replay produced), source_session_id (the Session it replayed), test_case_id (the Dataset test case it was for, if any), and the trace_ids it produced. Only a FAILED run is retryable, with rerun_failed_experiment (rerun="replays"). :param pipeline_name: Name of the pipeline. :param replay_run_id: The replay run's session_replay_run_id. :returns: The replay run, or an error message.

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": {
      "pipeline_name": "<pipeline_name>",
      "replay_run_id": "<replay_run_id>"
    },
    "name": "get_session_replay"
  }
}

Input Schema

NameRequiredDescriptionDefault
pipeline_nameYes
replay_run_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.29

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden well: it discloses that the call is free, enumerates the returned fields (status, error_detail, setup_logs, cleanup_logs, session_id, source_session_id, test_case_id, trace_ids), and states that only FAILED runs are retryable. It does not cover permission or rate-limit behavior, which keeps it short of a 5.

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 core behavior and id-sourcing guidance are front-loaded, and the field enumeration earns its length by documenting an otherwise undocumented return value. The 'Experiment support, for when you need it' preamble and the trailing :param/:returns docstring lines add some boilerplate.

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?

There is no output schema and zero schema coverage, so the description has to describe both inputs and returns, and it does: it names every returned field, the possible status values, and the retry path. Nothing an agent needs in order to call and interpret this tool is missing.

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, and it does for the non-obvious parameter: it explains that replay_run_id is the run's session_replay_run_id and shows two concrete ways to obtain it. pipeline_name is only glossed as 'Name of the pipeline', which is thin but low-risk given the parameter's obviousness.

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 opening sentence 'Reads one replay run' gives a specific verb and resource, and the follow-up defines the tool's scope as experiment-replay debugging. It does not explicitly distinguish itself from adjacent read tools like get_experiment_run, though it clarifies the relationship by explaining that get_experiment_run supplies the id.

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 states exactly when to use it (to see why an Experiment's replay failed or looks wrong), where to get the required replay_run_id (a row's session_replay_run_id in get_experiment_run, or replay_session), and names the follow-up alternative rerun_failed_experiment for FAILED runs. Routing and alternatives are explicit rather than inferred.

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

Deploy Server

Other Tools