Skip to main content
Glama

generate_draft_test_by_key

Create draft test code from Zebrunner test cases by detecting frameworks and generating code with setup, assertions, and optional page objects.

Instructions

🧪 Generate draft test code from Zebrunner test case with intelligent framework detection

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_keyNoProject key (auto-detected from case_key if not provided)
case_keyYesTest case key (e.g., 'ANDROID-6')
implementation_contextYesImplementation context (existing code, file paths, or framework hints)
target_frameworkNoTarget test framework (auto-detected if 'auto')auto
output_formatNoOutput format for generated testcode
include_setup_teardownNoInclude setup and teardown code
include_assertions_templatesNoInclude assertion templates
generate_page_objectsNoGenerate page object classes
include_data_providersNoInclude data provider templates
include_suite_hierarchyNoInclude featureSuiteId and rootSuiteId information
file_pathNoFile path for saving generated code (optional)
Behavior2/5

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

With no annotations provided, the description carries full burden but only mentions 'intelligent framework detection' as a behavioral trait. It doesn't disclose whether this is a read-only operation, if it modifies data, what permissions are needed, rate limits, or what the output looks like. For a code generation tool with 11 parameters, this is insufficient behavioral disclosure.

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?

The description is a single, efficient sentence that front-loads the core purpose. The emoji adds character but doesn't detract from clarity. Every word earns its place, though it could potentially be more specific about the generation scope.

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 complex code generation tool with 11 parameters and no output schema, the description is inadequate. It doesn't explain what the generated output contains, how the framework detection works, what happens when file_path is provided, or the relationship between parameters. With no annotations and rich parameter schema, the description should provide more contextual guidance.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all 11 parameters thoroughly. The description adds no additional parameter semantics beyond what's in the schema, but doesn't need to compensate for gaps. The baseline 3 is appropriate when the schema does all the parameter documentation work.

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 specific action ('Generate draft test code') and resource ('from Zebrunner test case'), including the intelligent framework detection feature. It distinguishes itself from sibling tools like 'get_test_case_by_key' or 'improve_test_case' by focusing on code generation rather than retrieval or enhancement.

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 usage context through 'intelligent framework detection' and the tool name suggests it's for creating test drafts from existing cases. However, it lacks explicit guidance on when to use this vs. alternatives like 'improve_test_case' or 'get_test_case_by_key', and doesn't mention prerequisites or exclusions.

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/maksimsarychau/mcp-zebrunner'

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