Skip to main content
Glama
juliodelimas

jmeter-mcp-server

by juliodelimas

add_random_controller

Add a Random Controller to a JMeter test plan to execute one randomly selected child per pass, enabling randomized test scenarios without manual setup.

Instructions

Add a Random Controller under the given parent (usually a Thread Group). On each pass it runs exactly one randomly chosen child (added under it) instead of all of them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoRandom Controller
planIdYes
parentIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.5

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It successfully explains the core random-selection behavior ('runs exactly one randomly chosen child'), which is valuable. However, it does not disclose potential side effects such as the controller being created empty or any restrictions on child types, leaving some behavioral aspects unstated.

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 sentences, front-loaded with the main action and behavior, with no fluff. Every word contributes to understanding the tool, and it is appropriately concise.

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 simple creation tool, the description covers purpose and behavior but lacks explicit parameter explanations, prerequisites (e.g., parent must exist and be a valid container), and what the resulting controller contains (e.g., empty children initially). It also does not mention return values or errors, leaving some gaps for an agent to handle.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate by explaining each parameter. It only implicitly references 'parent' for parentId but does not elaborate on the 'name' parameter or explicitly tie 'planId' to a context. No added meaning beyond the schema's field names, leaving agents to infer the purpose of most parameters.

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 verb 'Add' and the resource 'Random Controller', and explicitly distinguishes its behavior (runs one randomly chosen child per pass) from other controllers. It is unambiguous about what the tool accomplishes and differentiates it from siblings like add_loop_controller or add_if_controller.

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 gives context by noting the parent is 'usually a Thread Group', implying where to attach it, but it does not explicitly state when to choose this controller over alternatives (e.g., when random selection is desired) or when not to use it. No direct comparison with sibling controllers is made, so usage guidance is implicit rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.