Skip to main content
Glama
mcp-playwright-test-runner

mcp-playwright-test-runner

by AmrAsaad1025

Run Playwright tests

run_tests

Run a Playwright suite or filtered subset, return a compact summary and run_id, and stop the run at a set timeout. Use the run_id with result tools to inspect failures.

Instructions

Run the Playwright suite, or a filtered part of it, and return a compact summary plus a run_id. Use get_results or get_failure_details with that run_id for detail. A run that goes past the timeout is killed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "run_tests"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoRun one spec file or folder only.
grepNoPlaywright --grep pattern to filter test titles.
projectNoPlaywright project name, e.g. "chromium".
retriesNoRetries per failing test for this run.
timeout_msNoKill the run after this many milliseconds.
max_failuresNoStop after this many failures.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and discloses useful traits: it returns a compact summary plus a run_id, and a run exceeding the timeout is killed. It does not state whether the call blocks until the run finishes, what permissions/environment are needed, or how the summary is shaped.

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?

Three short sentences, front-loaded with what the tool does, then the follow-up routing, then the timeout caveat. Nothing is redundant.

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?

Six optional parameters with no output schema, but the description covers the return shape (compact summary + run_id) and how to get detail, which is the key missing context. Minor gap: it doesn't clarify run semantics (blocking vs. async) or what the summary contains.

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 coverage is 100%, so all six optional parameters (file, grep, project, retries, timeout_ms, max_failures) are already documented in the schema. The description only alludes to filtering generally and adds no syntax or interaction detail beyond the schema, so baseline 3 applies.

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?

Specific verb+resource: "Run the Playwright suite, or a filtered part of it." It also distinguishes itself from the siblings by routing detail retrieval to get_results/get_failure_details, so an agent knows this tool returns only a summary.

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?

Explicitly names the follow-up tools to use with the returned run_id, which is clear when-to-use-this-vs-alternatives guidance. It does not state when to prefer file vs grep vs project filtering, but the alternatives it does name are unambiguous.

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