Skip to main content
Glama
BobChochola

playwright-fixer-mcp

by BobChochola

Run Playwright test and collect failure artifacts

run_test_and_analyze_failure

Runs Playwright tests by tag, gathers failure context and artifacts for analysis, and stops retrying after three attempts to escalate to a human.

Instructions

Run npx playwright test --grep @. Returns passed/failed + resolvedContext (hover/fill/iframe/default) + artifacts for analyze_and_fix_selector. Enforces retry stop-loss: returns shouldStop:true when attemptNumber >= 3, requiring human escalation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagYesTest tag without @ (e.g. AUT-589-1); @ prefix is optional
projectRootNoProject root where to run playwright (default: current working directory)
attemptNumberNoCurrent attempt number starting at 1. When >= 3, returns shouldStop: true to escalate to human instead of retrying.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that the tool executes an npx playwright command, returns passed/failed status, resolvedContext (with enumerated values), artifacts, and enforces a retry stop-loss policy. This adds valuable behavioral context beyond the schema. It does not mention side effects or environment dependencies, but these are less critical for a test runner.

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?

The description is two sentences, front-loaded with the command, then outputs, then retry policy. Every sentence conveys essential information without redundancy. It is concise and well-structured, making it easy for an agent to quickly grasp the tool's function.

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 tool with no output schema, the description identifies the primary outputs (passed/failed, resolvedContext with allowed values, artifacts, shouldStop) and references the downstream consumer (analyze_and_fix_selector). It covers the core usage scenario and termination condition. It could be more complete by describing the artifact format or error handling, but it is sufficient for an agent to invoke and interpret results.

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?

The input schema already provides full descriptions for all three parameters (tag, projectRoot, attemptNumber), so the baseline is 3. The description adds minor context by illustrating the grep usage (@<tag>) and explaining the retry stop-loss behavior for attemptNumber, but this largely overlaps with schema descriptions. No significant new parameter semantics are introduced.

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?

The description clearly states the action ('Run npx playwright test --grep @<tag>'), the resource (a Playwright test tagged with the provided tag), and the purpose (collect failure artifacts for analyze_and_fix_selector). It distinguishes this tool from siblings like get_failure_artifacts by emphasizing that it actually executes the test, not just retrieves artifacts.

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?

The description gives clear context: use this tool to run a tagged test and obtain failure artifacts for downstream analysis. It also provides an explicit stopping condition (shouldStop at attemptNumber >= 3) with human escalation. However, it does not explicitly contrast with alternative sibling tools (e.g., get_failure_artifacts) or specify when not to use this tool, so it lacks explicit exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BobChochola/E2E-fixer-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server