Skip to main content
Glama

run_test

Executes a Playwright test and automatically heals failures caused by locator errors.

Instructions

Run the generated pytest Playwright test. Automatically heals the test if it fails due to a locator error. Always call write_test first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
crawl_dataYesThe crawl data returned by crawl_page as a JSON string. Needed for auto-healing.
output_dirYesThe absolute path of the project the user is currently working in. Must be the same value passed to write_test. Use your working directory context — never use the MCP server's own directory.
test_fileNoAbsolute path to the test file to run. Use the path returned by write_test. If omitted, falls back to test_generated.py.
Behavior3/5

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

Mentions auto-healing on locator error, which is a key behavioral trait beyond a simple 'run'. However, no annotations are present; the description does not cover other behaviors such as error handling for non-locator failures, file modifications, or permissions requirements.

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 main purpose and key behavior. Every sentence adds value. No unnecessary words.

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 tool with 3 parameters and no output schema, the description covers the main purpose and ordering. Lacks details on return values or side effects, but the scope is relatively simple and the schema covers parameters well.

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% with all parameters well described; the description adds no additional param-specific meaning beyond what the schema provides. Baseline score of 3 is appropriate.

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?

The description clearly states the tool runs a generated pytest Playwright test and distinguishes it from siblings (crawl_page, write_test) as the execution step. The verb 'Run' directly indicates the action.

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 states 'Always call write_test first', providing clear ordering. Does not explicitly mention when not to use or alternatives, but the required precedence is clear in context of siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/parajuliminiyan/PlaywrightMCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server