Skip to main content
Glama

generate_selenium_test

Generate Selenium WebDriver test with page object model, explicit waits, screenshots on failure, cross-browser support, and Grid configuration

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": {
      "testName": "<testName>",
      "url": "<url>"
    },
    "name": "generate_selenium_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
browserNo
runtimeNo
testNameYes
namespaceNoC# namespace (default App.Tests.E2E)
packageNameNoJava package (default com.example.e2e)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / namespace
      Added value: +{
      +  "description": "C# namespace (default App.Tests.E2E)",
      +  "type": "string"
      +}
    • addedInput schema / properties / packageName
      Added value: +{
      +  "description": "Java package (default com.example.e2e)",
      +  "type": "string"
      +}
  2. First observed

TDQS

C2.6/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 burden, yet it only describes traits of the generated code rather than tool behavior. It does not say where files are written, whether existing files are overwritten, what permissions or project scaffolding are required, or what the call returns.

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?

It is a single compact fragment with no wasted sentences, which is efficient, but it is a feature list rather than a structured statement of purpose and usage. Nothing is front-loaded about when to call it or what it produces on disk.

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 six-parameter code generator with no annotations and no output schema, the definition is too thin. An agent cannot determine output location, overwrite semantics, or how the optional namespace/package parameters interact with the chosen runtime.

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 description coverage is only 33% and the description adds no parameter meaning at all — browser, runtime, url, and testName are never mentioned. The 'cross-browser support' and 'Grid configuration' phrases loosely gesture at the browser parameter but give no format or default guidance.

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 opens with a specific verb and resource ('Generate Selenium WebDriver test'), so an agent immediately knows the artifact produced. However, it never distinguishes Selenium from the many sibling generators (Playwright, Cypress, Puppeteer, JUnit, pytest), so selection still relies on name matching 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?

There is no when-to-use guidance, no preconditions, and no mention of when a different generator is the better choice. The enumerated features (POM, explicit waits, Grid) hint at suitability but are not framed as selection criteria.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.