Skip to main content
Glama

generate_java_junit5

Create a Java JUnit 5 test class from a live browser session, complete with setup, test, teardown methods, and explicit waits.

Instructions

Generate a Java JUnit 5 test class from the current browser session. Includes @BeforeEach, @Test, @AfterEach and proper WebDriverWait usage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
test_nameNoRecordedFlowTest
package_nameNocom.tests.selenium
Behavior3/5

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

No annotations are provided, so the description must cover behavioral traits. It mentions generating a test class from the current session, which implies a running browser, but does not state side effects (e.g., no session modification) or prerequisites (e.g., browser must be active). Adequate but not thorough.

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?

Two sentences, front-loaded with the main action, and includes key details without extraneous information. Efficient and well-structured.

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?

The description covers the tool's core purpose and included elements but lacks parameter explanations and prerequisites (e.g., a browser session must be active). With no output schema, the agent has an incomplete understanding of the tool's full behavior.

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

Parameters1/5

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

The input schema has two parameters (test_name, package_name) with 0% description coverage. The description does not mention them, leaving the agent uninformed about their purpose (class name and package). Fails to compensate for missing schema descriptions.

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 the tool generates a Java JUnit 5 test class from the current browser session and lists key components (@BeforeEach, @Test, @AfterEach, WebDriverWait). It distinguishes itself from sibling tools focused on other testing frameworks (e.g., TestNG, NUnit, Python).

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?

The description implies use for JUnit5 test generation but does not explicitly compare with alternatives like generate_java_testng or provide when-not-to-use guidance. No exclusions or context for selecting this tool over siblings.

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