Skip to main content
Glama

generate_gherkin

Convert a recorded browser session into a Cucumber Gherkin .feature file and Java step definitions, with steps in plain English wired to Selenium WebDriver code.

Instructions

Generate a Cucumber Gherkin .feature file + Java step definitions class from the recorded browser session. Steps are written in plain English and wired to full Selenium WebDriver code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
feature_nameNoFeature name e.g. 'Login'. Auto-inferred from URL if omitted.
scenario_nameNoRecorded user flow
package_nameNocom.tests.selenium
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of behavioral disclosure. It explains that the tool generates two files based on a recorded session, but omits details such as whether the session is consumed or modified, what happens if no session exists, or the exact output location. Additional context about side effects would improve transparency.

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

Conciseness5/5

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

The description is extremely concise with two sentences that pack essential information: what it generates, the source (recorded session), and output details (plain English steps, Selenium code). No unnecessary words or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of generating two files from a session, the description is incomplete. It does not mention output naming conventions, directory structure, or prerequisites like having an active recording. While sibling tools imply recording exists, the description should explicitly state requirements. No output schema is present, but the description could hint at return values.

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?

The description does not elaborate on the parameters beyond what is in the input schema. Schema coverage is low (only one parameter has a description), and the description only adds output context ('wired to full Selenium WebDriver code'), not parameter-specific meaning. The agent benefits little from the description for understanding how to fill in parameters correctly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states that the tool generates a Cucumber Gherkin .feature file and Java step definitions from a recorded browser session, with steps in plain English wired to Selenium WebDriver code. This distinguishes it from sibling tools that generate other test formats (e.g., NUnit, JUnit, Python).

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 description does not provide any guidance on when to use this tool over alternatives. It lacks context about prerequisites or scenarios where Gherkin is appropriate, leaving the agent without decision support.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/seleniumboot/selenium-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server