Skip to main content
Glama

Generate k6 Script

k6_generate

Generate a k6 performance test script from a target URL and optional endpoint list. Auto-creates load profiles with thresholds.

Input Schema

NameRequiredDescriptionDefault
vusNoVirtual users
nameNoScript name
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
endpointsNoAPI endpoints to test [{method, path, body?}]
test_typeNoType of test to generateload
project_idYesProject ID
target_urlYesURL to generate test for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the mutation and open-world profile are covered. The description adds useful behavior by saying it auto-creates load profiles with thresholds, but it does not state where scripts are saved, whether existing names are overwritten, or what permissions are required.

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 core action and scope. Every clause adds useful information about the source inputs and auto-created load profiles, with no filler.

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?

For a generation tool with eight parameters, no output schema, and significant sibling overlap, the description covers the core action and one behavioral detail but omits what is returned and how the generated script/profile is surfaced. It is minimally adequate because the rich schema documents the parameters, but it does not fully prepare the agent for invocation and follow-up.

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 explains all eight parameters, including vus, duration, test_type, and the required project_id. The description only mentions target_url and endpoints, adding no syntax, defaults, or enum guidance beyond the schema, so the baseline 3 applies.

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 gives a specific verb and resource: generate a k6 performance test script from a target URL and optional endpoint list. That source-based scope implicitly separates it from k6_generate_from_test_case, but it does not explicitly name or distinguish among the several k6 sibling tools.

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?

It implies when to use the tool by stating it generates from a target URL and optional endpoint list, but it gives no explicit when-to-use versus alternatives, prerequisites, or exclusions. The agent must infer the selection criteria relative to k6_create_script and k6_generate_from_test_case.

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