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

mcp-playwright-test-runner

by AmrAsaad1025

Get failure details

get_failure_details

Explains why Playwright tests failed by returning error messages, stack traces, locations, captured stdout/stderr, and screenshot or trace paths. Defaults to every failure in the most recent run.

Instructions

Explain why tests failed: full error message, stack, location, captured stdout/stderr and the screenshot or trace paths Playwright saved. Defaults to every failure in the most recent run.

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

Input Schema

NameRequiredDescriptionDefault
testNoOnly failures whose title contains this text.
run_idNoRun id returned by run_tests. Omit for the latest run.
max_charsNoTruncate each text field to this many characters (default 4000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/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, and it does disclose the returned payload shape and the default scope of all failures in the latest run. It does not state that the operation is read-only, how large payloads behave (beyond the schema's max_chars), or what happens when there are zero failures, so material behavioral gaps remain for a no-annotation tool.

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, zero filler, and the payload contents are front-loaded before the default-scope sentence. Every phrase earns its place by either defining the output or the default behavior.

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?

There is no output schema, so the description must describe return values, and it does so concretely via the field enumeration. Complete for a read-oriented lookup tool, with only minor gaps such as empty-failure behavior and payload-size handling left to the schema.

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 the schema already documents test, run_id, and max_chars with defaults and bounds. The description adds only the default scope ('every failure in the most recent run'), which overlaps with run_id's own 'Omit for the latest run' description, so it contributes little beyond the schema baseline.

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?

Names a specific verb ('Explain why tests failed') and enumerates exactly what is returned: error message, stack, location, stdout/stderr, and artifact paths. It is clear what the tool yields, but it never explicitly contrasts itself with get_results, so an agent must infer the split between results-level and failure-level detail.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: 'Explain why tests failed' signals post-run debugging, and 'Defaults to every failure in the most recent run' describes the default scope. There is no explicit when-to-use/when-not or pointer to the sibling get_results for aggregate results, leaving selection between the two to inference.

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