Skip to main content
Glama
IAnjaniKr

jmeter-mcp-server

by IAnjaniKr

add_assertion

Add validation assertions to a JMeter test file to check response codes, durations, or content, ensuring tests fail on unexpected responses.

Instructions

Add an assertion to validate responses

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoOptional name for the assertion
typeYesAssertion type
valueYesAssertion value (e.g., '200', '5000', 'success')
testfileYesPath to the .jmx file
samplerNameYesName of the HTTP sampler to add assertion to

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

There are no annotations, so the description carries the full behavioral burden, but it only says 'Add an assertion to validate responses.' It does not disclose that this likely modifies a .jmx test file, whether assertions are appended or replaced, or what happens if the sampler or file is missing. The mutation is implied but side effects are not explained.

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 one short, front-loaded sentence with no filler or repetition. It conveys the essential purpose efficiently, though it could have added slightly more contextual structure without becoming bloated.

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?

The schema fully covers parameters and the operation is relatively simple, but the description lacks behavioral context such as file mutation, side effects, and when to add an assertion in the test-plan workflow. It is minimally viable but has clear gaps around usage and expected behavior.

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 each of the five parameters is already documented in the schema. The description itself adds no extra parameter-level meaning beyond the schema, so the baseline of 3 is appropriate. The value examples in the schema are useful and no compensation from the description is needed.

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 'Add an assertion to validate responses' clearly states the action (adds an assertion) and its purpose (validate responses). It distinguishes this from sibling add_* tools by naming the distinct resource 'assertion', though it does not explicitly compare itself to those siblings.

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 phrase 'to validate responses' implies the tool is used when response validation is needed in a test plan, which gives some contextual direction. However, it does not explicitly state when to use it vs alternatives, when not to use it, or mention prerequisites like having an existing sampler or test file.

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

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/IAnjaniKr/jmeter-mcp-server'

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