Skip to main content
Glama

detect_selenium_boot

Identifies Selenium Boot project configuration to set the appropriate code generation framework before generating Java code.

Instructions

Detect whether the current working directory is inside a Selenium Boot project (looks for selenium-boot.yml or the io.github.seleniumboot dependency in pom.xml / build.gradle, walking up parent directories). Call this BEFORE generating Java code: if it reports detected=true, generate with framework="selenium_boot" so the output uses the framework's accessibility-first locators and managed driver.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_dirNoOptional path to start detection from. Defaults to the server's working directory.
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses the detection mechanism (file lookup walking up parent directories) and that it returns a boolean 'detected'. Lacks detail on edge cases or errors, but sufficient for a simple detection tool.

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, no fluff. Each sentence adds critical information: what it does and how to use the result.

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

Completeness5/5

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

Low complexity tool with one optional param and no output schema. Description covers purpose, detection method, output interpretation, and usage context. No missing aspects.

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

Parameters4/5

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

Single parameter 'project_dir' with 100% schema coverage. Description adds that it defaults to the server's working directory, which is useful context beyond the schema.

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 it detects if the current directory is inside a Selenium Boot project by looking for specific files (selenium-boot.yml or dependency). It also specifies the exact context: call before generating Java code. This distinguishes it from siblings like generate_java_junit5 etc.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says 'Call this BEFORE generating Java code' and gives conditional guidance: if detected=true, use framework='selenium_boot'. This tells the agent when and how to use the result.

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