Skip to main content
Glama

e2e_report

Opens a Playwright HTML test report for a specified test directory so you can review test results and failure details.

Instructions

打开 Playwright HTML 测试报告

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_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
testDirNo测试目录路径

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 provided, so the description carries the full behavioral burden, yet "open" is ambiguous: it could launch a browser window, start a local HTTP server, or return a file path. Nothing is said about side effects, failure when no report exists, or permissions, which matters for a tool likely to have a visible side effect.

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?

One short sentence with zero padding; the purpose is front-loaded and immediately readable. Its brevity is efficient, though it leaves the gaps noted in the other dimensions.

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?

The tool is simple (one optional parameter, no output schema), but with no annotations and no statement of what invocation actually does or requires, the definition is too thin for an agent to call it confidently. A single clause about the prerequisite report and the resulting action would make it complete.

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 the single optional testDir parameter is already documented in the schema as the test directory path. The description adds no extra meaning such as a default path or whether a missing value falls back to the project root, 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?

"打开 Playwright HTML 测试报告" states a concrete verb (open) and a concrete resource (Playwright HTML test report), which clearly distinguishes it from siblings e2e_init and e2e_run that set up and execute tests. It stops short of 5 only because it does not mention scope or what opening entails.

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 guidance on when to call this rather than e2e_run, nor any stated prerequisite such as a report having already been generated by a prior run. The agent must infer the workflow order from sibling names alone.

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