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

mcp-playwright-test-runner

by AmrAsaad1025

List Playwright tests

list_tests

Discover which Playwright tests exist in a configured project without running them. Use it to get exact test titles before filtering a run with grep.

Instructions

List the tests Playwright can see in the configured project without running them. Use it to find out what exists, or to get exact titles before filtering a run with grep.

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": "list_tests"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoLimit to one spec file or folder, e.g. "tests/login.spec.ts".
grepNoPlaywright --grep pattern to filter test titles.
projectNoPlaywright project name, e.g. "chromium".
timeout_msNoAbort the listing after this many milliseconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the critical trait that tests are not executed, which is genuine behavioral value. It says nothing about what permissions/config state are required or what the returned listing looks like (titles, files, projects), and there is no output schema to fill that gap.

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?

Two sentences, front-loaded with the core action and immediately followed by the practical use case. No filler or restated title material.

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 zero-required-parameter read/discovery tool with fully documented schema and no output schema, the description covers the essentials of what it does and when to reach for it. Only the shape of the returned listing is left unstated, which is a minor gap.

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 file/grep/project/timeout_ms are already documented in the schema; baseline 3 applies. The description corroborates the grep param's purpose slightly by framing it as title filtering before a run, but adds no format or interaction details beyond the schema.

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 ("List the tests Playwright can see in the configured project") with the key distinguishing qualifier "without running them," which separates it from the sibling run_tests. An agent can tell discovery from execution without consulting any schema.

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?

Gives two concrete when-to-use contexts: discovering what exists, and resolving exact titles before filtering a run with grep. The grep mention implicitly routes to the execution path, but no explicit when-not or named alternative tool is given, so it stops short of a 5.

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