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

mcp-playwright-test-runner

by AmrAsaad1025

Get run results

get_results

Read back a finished Playwright test run to inspect per-test status, duration, retry count, and first error line; defaults to the latest run and can list attachment paths.

Instructions

Read back a finished run: per-test status, duration, retry count and the first line of any error. Defaults to 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_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idNoRun id returned by run_tests. Omit for the latest run.
include_attachmentsNoAlso list screenshot and trace paths.

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?

No annotations are supplied, so the description must carry the behavioral burden; "Read back" makes the read-only nature clear and the default-run behavior is disclosed. It does not say what happens if the run is still in progress or unknown, nor that error text is truncated to the first line by design rather than by data limits.

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 resource and the returned payload, followed by the default behavior. Nothing is redundant or padded.

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?

With no output schema, the description compensates by listing the returned fields, which is the key missing structured information. Minor gaps remain: the effect of include_attachments on the result and the failure mode for a non-finished run are unstated.

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 both parameters are already documented in the schema; the description only reinforces the run_id default. The include_attachments parameter and its effect on the response are not mentioned in the description, so no meaning is added beyond the schema.

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?

States a specific verb+resource ("Read back a finished run") and enumerates the returned fields (per-test status, duration, retry count, first error line), which separates it from get_failure_details and run_tests without naming them. The only gap is that it never explicitly contrasts itself with the sibling that presumably gives deeper failure 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?

"Read back a finished run" and "Defaults to the most recent run" imply the post-run_tests use case and remove the need to know a run id. There is no explicit when-not guidance or pointer to get_failure_details for full error bodies, so routing between the read tools is left 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