Skip to main content
Glama

e2e_run

Runs Playwright E2E tests with optional file, directory, project, test-name filter, and headed browser mode, returning execution results.

Instructions

运行 E2E 测试并返回结果

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

Input Schema

NameRequiredDescriptionDefault
grepNo按名称过滤测试
headedNo是否显示浏览器窗口
projectNo指定浏览器项目
testDirNo测试目录路径
testFileNo指定测试文件

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/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 burden. "运行 E2E 测试并返回结果" says nothing about execution behavior: default headed/headless mode, blocking duration, timeout, exit codes, whether artifacts or reports are produced, or how failures are surfaced. Only the fact that results are returned is disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single, tightly worded sentence with no filler and the action front-loaded. Brevity here reflects under-specification rather than disciplined editing, because nothing is said about how to invoke the tool correctly in context.

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?

For a five-parameter test runner with no annotations and no output schema, an agent needs to know execution semantics, failure behavior, and output shape. The description supplies none of this, and its claim to "return results" is unelaborated while no output schema exists to explain the return value.

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?

All five parameters are documented in the schema at 100% coverage, so the baseline is 3. The description adds no meaning beyond the schema — no interaction between grep and testFile, no default for headed, and no guidance on project versus testDir.

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 and resource ("运行 E2E 测试" / run E2E tests) plus the outcome ("返回结果"), so an agent knows the core action. It does not distinguish itself from the siblings e2e_init and e2e_report, leaving the differentiation to the names alone.

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?

No guidance on when to use this tool rather than e2e_init or e2e_report, and no prerequisites are given (for example whether the environment or browsers must first be initialized via e2e_init). Usage must be inferred entirely from the name.

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