Skip to main content
Glama

e2e_init

Initializes an end-to-end test project by creating Playwright configuration and directory structure, preparing a web app for automated browser tests.

Instructions

初始化 E2E 测试项目,创建 Playwright 配置和目录结构

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "projectDir": "<projectDir>"
    },
    "name": "e2e_init"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseUrlNo测试目标 URL,默认 http://localhost:3000
projectDirYes项目根目录路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/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. It discloses that files are created (config + directory structure), but says nothing about overwrite/merge behavior on an existing projectDir, idempotency, dependency installation, or required permissions — critical for a filesystem-writing scaffolder.

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

Conciseness4/5

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

A single front-loaded sentence with zero filler that states the action and the artifacts produced. It is efficiently written, though its terseness leaves the behavioral gaps noted elsewhere.

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 must supply all behavioral context for a mutating setup tool, and it does not. An agent cannot tell whether it will overwrite existing files, whether it must run before every e2e_run, or what it should expect on success.

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 (projectDir, baseUrl with its default) are documented in the schema. The description adds no extra meaning, such as whether projectDir is created if missing or how baseUrl is written into the generated config, so the baseline of 3 applies.

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 uses a specific verb+resource (初始化 E2E 测试项目) and names the concrete artifacts produced (Playwright 配置和目录结构), so an agent knows this is a scaffolding step rather than a test runner or reporter. It does not explicitly contrast itself with the e2e_run/e2e_report siblings, keeping it short of a 5.

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 only implied: 'initialize' suggests it is the first step before e2e_run, but the description never states when to call it, whether it is a one-time setup per project, or what to do if the project already exists. No alternatives or exclusions are named.

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