Skip to main content
Glama
hubertgajewski

playwright-report-mcp

run_tests

Run Playwright tests with configurable spec, browser, tag, timeout, and other options, returning structured test results.

Instructions

Run Playwright tests and return structured results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workingDirectoryNoPlaywright project directory. Absolute or relative to the MCP server launch directory. Defaults to ".". Must be under PW_ALLOWED_DIRS.
specNoSpec file path, e.g. tests/navigation.spec.ts
browserNo
tagNoTag filter, e.g. @smoke or @regression
timeoutNoTimeout in milliseconds for the whole test run. Defaults to 300000.
waitNoWait for completion before returning. Defaults to true. Set false to start a background run and poll it with get_run_status.
updateSnapshotsNoUpdate snapshot baselines. Playwright default is "missing"; "changed" updates differing + missing.
headedNoRun with a visible browser window. Omitting or setting false leaves playwright.config.ts intact — Playwright has no --no-headed flag, so false does not force headless when the config sets headed.
workersNoNumber of parallel workers (positive integer).
retriesNoMaximum retry count for flaky tests; 0 disables retries.
maxFailuresNoStop the run after this many failures.
traceNoForce Playwright tracing mode, overriding playwright.config.ts.
Behavior2/5

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

With no annotations, the description bears full responsibility for disclosing behavioral traits. It only says 'return structured results' but omits critical details like error behavior, blocking vs non-blocking execution, permissions required, or performance characteristics. The parameter descriptions add some detail but the tool description itself is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence, which is concise but lacks structure and key information. It is appropriately short but at the expense of completeness. A slightly longer description with bullet points would improve clarity.

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

Completeness2/5

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

Given 12 parameters, no output schema, and no annotations, the description is overly minimal. It does not explain return values, error handling, prerequisites (e.g., playwright installation), or the effect of parameters like wait or headed. The description fails to provide a complete picture for a complex tool.

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 92% (high), so the schema provides detailed parameter semantics. The tool description adds no additional parameter meaning. Baseline 3 is appropriate since the schema already does the heavy lifting and the description does not detract.

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 clearly states the tool runs Playwright tests and returns structured results, which distinguishes it from sibling tools that retrieve failures or status. However, it doesn't explicitly differentiate itself from other sibling tools that might also involve running tests (e.g., list_tests).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like get_run_status. The wait parameter hints at background runs but is not described in the tool description itself. The agent is left to infer usage context from the parameter descriptions.

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/hubertgajewski/playwright-report-mcp'

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