Skip to main content
Glama

electron_generator_setup

Initializes a test generation session for Electron apps by accepting a test plan and target framework, enabling generation of WebdriverIO or Playwright test code.

Instructions

Initialize a test generation session. Provide a test plan and target framework.

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": {
      "testPlan": "<testPlan>",
      "framework": "<framework>"
    },
    "name": "electron_generator_setup"
  }
}

Input Schema

NameRequiredDescriptionDefault
testPlanYesPath to test plan file or test plan content
frameworkYesTest framework to generate code for
outputDirNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/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 and largely drops it. 'Initialize a session' leaves unstated whether state is persisted, whether files/directories are created, what happens if a session already exists, and what the call hands back to the agent.

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?

Two short sentences with the action front-loaded and no filler. The second sentence mostly duplicates the required-parameter list already in the schema, so it is efficient but partially redundant rather than earning its place fully.

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 session-initializing tool with no annotations and no output schema, the definition says almost nothing an agent needs: no lifecycle position, no side effects, no handling of the undocumented outputDir, and no indication of what to do after setup.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%: testPlan and framework are documented in-schema (framework even has an enum), while outputDir is undocumented anywhere. The description merely restates the two required parameter names and adds nothing — it does not resolve whether testPlan is a path or raw content, nor what outputDir defaults to.

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+resource: 'Initialize a test generation session.' An agent can tell this is a setup/entry step, but the description never distinguishes it from nearby siblings such as electron_planner_setup or electron_generate_test, so a caller must still guess where this fits in the workflow.

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?

The second sentence tells the agent what to supply, not when to call the tool. There is no statement of prerequisites (e.g. must a plan exist first?), no when-not-to-use, and no routing to the planner or generator siblings that could be confused with it.

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