Skip to main content
Glama
juliodelimas

jmeter-mcp-server

by juliodelimas

add_csv_data_set

Adds a CSV Data Set Config to a JMeter test plan under a Thread Group or sampler, letting each thread read one row per iteration and exposing each column as a JMeter variable.

Instructions

Add a CSV Data Set Config under the given parent (a Thread Group to feed every sampler in it, or a single sampler to scope it there). Each thread reads one row per iteration, exposing each column as a JMeter variable. The filename must be an absolute path readable on the machine that will run the test (execute_test_plan runs JMeter from a fresh per-execution directory, so relative paths won't resolve).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoCSV Data Set Config
planIdYes
recycleNoStart over from the first line once the last row is used
filenameYesAbsolute path to the CSV file
parentIdYes
delimiterNo,
stopThreadNoStop the thread once the file is exhausted (instead of recycling)
variableNamesNoComma-separated column names, e.g. 'username,password'. Omit if the CSV has a header row.
ignoreFirstLineNoSet true if the CSV's first line is a header row

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.5

TDQS

A4.4/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 behavioral burden. It proactively discloses the critical requirement that filename must be an absolute path and warns about the per-execution directory logic in execute_test_plan, which is a non-obvious caveat. It also explains the row-reading behavior, which goes beyond the schema. This is strong, though it stops short of describing failure modes or the response format.

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?

Three sentences, each earning its place. The first states the core action and placement, the second conveys the primary behavioral mechanism, and the third delivers a crucial operational warning. No filler, no repetition of schema defaults. The most important caveat is saved for the end, but it's not overlong.

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?

For a 9-parameter tool with no output schema, the description covers the essential placement, data-flow behavior, and the file-path pitfall. It does not explicitly address interactions between recycle and stopThread beyond what the schema already provides, nor does it mention whether the tool overwrites existing configs. Given the moderate complexity, the description is fairly complete but not exhaustive.

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?

Schema description coverage is 56%, so the description needs to compensate for undocumented parameters (name, planId, parentId, delimiter). It does by explaining the meaning of parentId (placement) and filename (absolute path required). It also adds context on how variableNames and ignoreFirstLine relate to CSV header handling implicitly. The schema already covers the other parameters, so the description adds value without duplicating schema text.

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 opens with a specific verb+resource ('Add a CSV Data Set Config') and names the parent as either a Thread Group or a single sampler, which clearly distinguishes it from sibling add_* tools like add_thread_group or add_http_sampler. It also explains the core behavior (each thread reads one row per iteration, columns exposed as JMeter variables), making the tool's purpose unambiguous.

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

Usage Guidelines4/5

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

The description gives clear placement guidance: attach under a Thread Group to feed all samplers, or under a single sampler to scope locally. This helps the agent decide where to attach. However, it does not explicitly state when to choose this over alternatives like add_user_parameters or add_user_defined_variables, nor does it mention scenarios where CSV config is inappropriate.

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