Skip to main content
Glama

Load a CI report

load-report

Import a Playwright run from a CI JSON report, blob-report folder, or GitHub Actions/GitLab URL so failure diagnosis, fix suggestions, and flaky detection work on remote runs.

Instructions

Load a Playwright run that happened elsewhere (a CI job's JSON report, a folder of blob reports from shards, or a GitHub Actions / GitLab CI run URL) so get-failure, suggest-fix and diagnose-flaky work on it like a local run. CI paths are mapped onto this checkout and traces are found in the unpacked test-results artifact; the run is recorded in the history with its commit.

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": {
      "report": "<report>"
    },
    "name": "load-report"
  }
}

Input Schema

NameRequiredDescriptionDefault
branchNo
commitNoCommit the run tested (default: read from the report metadata)
recordNoAdd the run to the local history for analyze-history (default true)
reportYesJSON report or blob-report folder inside the project, or a GitHub Actions run / GitLab job URL (needs GITHUB_TOKEN / GITLAB_TOKEN)
timeoutMsNoLimit for merging blob reports (default 120000)
traceDirsNoFolders inside the project where the job's test-results artifact was unpacked (default: the report's folder and its parent)
projectRootNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.13.0
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -{}
    • removedInput schema / properties / branch / maxLength
      Removed value: -200
    • removedInput schema / properties / commit / maxLength
      Removed value: -64
    • changedInput schema / properties / report / description
      Previous value: -"Playwright JSON report inside the project (e.g. ci-artifacts/results.json), or a folder of blob reports (*.zip) from sharded jobs"New value: +"JSON report or blob-report folder inside the project, or a GitHub Actions run / GitLab job URL (needs GITHUB_TOKEN / GITLAB_TOKEN)"
    • removedInput schema / properties / traceDirs / maxItems
      Removed value: -10
  2. Addedv0.6.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag a non-read-only, open-world, non-idempotent operation; the description adds substantive beyond that: CI paths get mapped onto this checkout, traces are located in the unpacked test-results artifact, and the run is written into history with its commit. It still doesn't state what is overwritten on repeat loads or what errors look like when a URL can't be fetched, which matters for a non-idempotent write.

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?

Two sentences, no filler, with the source forms and the payoff (downstream tools work on it) front-loaded. The second sentence is densely packed with three distinct facts, which slightly taxes scanning but every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter, 1-required mutation tool with no output schema, the description covers what the tool ingests and what side effect it produces (history record, trace discovery). The notable omission is the return value — an agent isn't told what handle or summary comes back to pass into get-failure or diagnose-flaky.

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?

With 71% schema coverage the baseline is 3, and the description earns an increment by explaining the semantics behind the parameters: the alternatives encoded in `report`, where traces come from (relating to `traceDirs`), and that history recording carries the commit (relating to `commit`/`record`). It doesn't clarify `projectRoot`, `branch`, or how `traceDirs` overrides the default.

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 and resource ("Load a Playwright run") and immediately scopes it to runs that happened elsewhere, listing the three accepted source forms (JSON report, blob-report folder, CI run URL). The closing clause distinguishes it from the local-run path by naming the downstream tools (get-failure, suggest-fix, diagnose-flaky) that consume the loaded run.

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?

"That happened elsewhere" plus the enumeration of CI artifact forms gives a clear condition for selecting this over run-test. It doesn't explicitly say "use run-test for local runs" or state failure conditions (e.g. what happens for a URL with no token), so it stops short of full when/when-not guidance.

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