Skip to main content
Glama
Playwright MCP Server

Playwright MCP Server

by sohitmahato

playwright_generate_workflow_test

Generates a test file from current workflow actions, targeting Playwright or Puppeteer and outputting TypeScript or JavaScript.

Instructions

Auto-generate a Playwright test file from the current workflow actions

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

Input Schema

NameRequiredDescriptionDefault
languageNoProgramming language (default: typescript)
frameworkNoTest framework (default: playwright)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden and falls short: it never says where the generated file is written, whether an existing file is overwritten, what is returned, or that recorded actions must exist. For a tool that produces a file artifact, these are material omissions.

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?

A single front-loaded sentence with no filler; the artifact and its source are stated immediately. Nothing can be trimmed without losing information.

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?

With no annotations and no output schema, the description is the only source for behavioral context, yet it omits the side effect (file creation destination/overwrite) and the precondition (active workflow recording). That is insufficient for a generating, file-writing 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 100% and both parameters are enums with documented defaults, so the schema already does the heavy lifting. The description adds no meaning about language/framework selection beyond what the schema states, which is the expected baseline here.

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 gives a concrete verb and artifact ('Auto-generate a Playwright test file') plus the source ('current workflow actions'), so the agent knows exactly what is produced. It does not, however, distinguish this from the sibling playwright_generate_test, leaving the agent to guess which generator applies.

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?

There is no explicit when-to-use guidance and no named alternative, despite a sibling named playwright_generate_test that plausibly overlaps. The phrase 'current workflow actions' faintly implies a prior recording step, but no prerequisite is ever stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.