Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Diagnose failed Playwright tests from trace.zip archives. Start with triage_failure for a full root-cause summary, failing locator, correlated 4xx/5xx network errors, console errors, and self-healing locator fixes. Use find_latest_trace first only if you want to locate or verify the newest trace.zip path without parsing it yet. Use get_failed_network_calls when you only need HTTP 4xx/5xx or aborted requests, and suggest_locator_fixes when you only need resilient locator alternatives for a failing or custom selector. All tools are read-only and never modify test files or traces.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
triage_failureA

Diagnose a Playwright failure trace.zip and return advisory fix recommendations as Markdown + JSON (classification, failedAction, networkErrors, consoleErrors, recommendations, tracePath) without modifying any files. If tracePath (local path to a .zip trace archive) is omitted, auto-discovers the newest trace under cwd; returns an error if no trace exists or the archive is unreadable. Use as the default entry point for full failure triage; prefer get_failed_network_calls or suggest_locator_fixes when you only need that single slice, or find_latest_trace to check trace existence first.

find_latest_traceA

Recursively searches test-results/, playwright-report/, and project subdirectories under baseDir (defaults to cwd) for the newest Playwright trace.zip file. Returns JSON with { found, tracePath, sizeBytes, lastModified }, or { found: false, message } when no trace exists (does not throw on empty results). Use before other tools to verify a trace exists or inspect its timestamp; do not use when you already have a tracePath and want immediate triage (use triage_failure directly).

get_failed_network_callsA

Extracts all HTTP 4xx/5xx responses and aborted/failed requests across a Playwright trace.zip and returns JSON { tracePath, totalRequests, failedRequestsCount, failedRequests }. If tracePath (local .zip path) is omitted, auto-discovers the latest trace under cwd; returns an error if no trace exists. Use when debugging API/backend failures in isolation; prefer triage_failure for full root-cause, console, and locator analysis.

suggest_locator_fixesA

Analyzes a failing Playwright selector from a trace.zip (or customSelector, e.g. "button#pay") against recorded DOM state and returns advisory JSON { failingSelector, failureClassification, recommendations } (getByRole, getByTestId, auto-await) without editing test files. Defaults to the latest trace under cwd if tracePath is omitted; returns an error if no trace exists, or undefined failingSelector with general recommendations if no action failed. Use when you only need selector replacements; prefer triage_failure for full failure diagnosis or non-selector failures.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.6/5.0

Scored across 4 tools

Disambiguation4/5

Each tool has a clear focus, and the descriptions explicitly cross-reference when to use triage_failure versus the single-slice tools (network, locator, trace discovery). There is real hierarchical overlap since triage_failure's output subsumes networkErrors and locator recommendations, so an agent may default to it, but the guidance mitigates misselection.

Naming Consistency5/5

All four names follow a consistent snake_case verb_phrase pattern: triage_failure, find_latest_trace, get_failed_network_calls, suggest_locator_fixes. The verbs differ appropriately by action while the structure stays predictable.

Tool Count5/5

Four tools is well-scoped for a narrow trace-diagnosis server: one entry point, one discovery helper, and two targeted slices. Each tool has a distinct, defensible role with no filler.

Completeness4/5

The surface covers trace discovery, full triage, network failure extraction, and locator suggestions — the core diagnostic lifecycle. Minor gaps remain: no standalone console-error extraction, no timing/flakiness or retry analysis, and no way to compare or list multiple traces.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues