Skip to main content
Glama

Generate k6 Script from Test Case

k6_generate_from_test_case

Generate a k6 performance test from an existing QualityMax test case. Extracts HTTP interactions and builds a load test.

Input Schema

NameRequiredDescriptionDefault
vusNoVirtual users
contextNoExplain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization."
durationNoTest duration1m
test_typeNok6 test typeload
test_case_idYesTest case ID to generate k6 script from

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, and destructiveHint=false, so the agent knows this is a non-destructive generation operation that may involve external context. The description adds that it extracts HTTP interactions and builds a load test, but it does not say whether a new script is persisted, returned, or how it relates to k6_get_script or k6_list_scripts.

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 two tightly written sentences with no filler, and the core action is front-loaded: generate a k6 performance test from an existing test case. The second sentence adds useful detail without bloating the definition.

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

Completeness4/5

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

The tool has a fully described 5-parameter schema and meaningful annotations, and the description explains the transformation source and output type. However, there is no output schema and the description does not clarify what the generated artifact looks like or whether it is stored, which leaves a minor completeness gap for a generation tool.

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 input schema already documents test_case_id, vus, duration, test_type, and context, including the enum for test_type. The description adds no parameter-specific meaning beyond what the schema provides, so the baseline of 3 is appropriate.

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 states a specific verb and resource: generate a k6 performance test from an existing QualityMax test case, and adds that it extracts HTTP interactions. It is clear what the tool does, but it does not explicitly distinguish this from nearby siblings such as k6_generate, k6_create_script, or the various *_to_k6 converters.

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 source condition is implied by 'from an existing QualityMax test case', which tells the agent this is for cases where a test case already exists. However, there is no explicit guidance on when to prefer this over k6_generate, k6_create_script, or conversion tools, and no exclusions are given.

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.

Resources