Skip to main content
Glama
juliodelimas

jmeter-mcp-server

by juliodelimas

add_size_assertion

Add a size assertion to an HTTP sampler in a JMeter test plan to validate a response field's byte size against a specified threshold, ensuring response size meets expectations.

Instructions

Add a Size Assertion under an HTTP sampler, comparing a response field's byte size against a threshold.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoSize Assertion
sizeYesSize in bytes to compare against
planIdYes
operatorNoequal
parentIdYes
testFieldNoresponse_network_size

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.5

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral disclosure burden. It states the primary effect—adding a Size Assertion and comparing byte size—but does not mention side effects, validation behavior, or what happens if the parent element is invalid. Acceptable for a simple add operation, but minimal.

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?

A single sentence, front-loaded with the action and target, with zero filler. It is efficiently structured and easy to parse.

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

Completeness2/5

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

Given 6 parameters, no output schema, and no annotations, one sentence is not enough. It lacks explanation of required IDs, operator semantics, and testField options, and provides no guidance among the many sibling add_* tools.

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 only 17%, so the description must compensate. It adds useful meaning for parentId ('under an HTTP sampler'), testField ('response field'), and size ('byte size'), but leaves planId, operator, and name semantics unexplained.

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 uses a specific verb ('Add'), names the exact resource ('Size Assertion'), and states the precise purpose: comparing a response field's byte size against a threshold. This clearly distinguishes it from sibling assertion tools like add_json_assertion, add_duration_assertion, and add_response_assertion.

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 gives placement context by saying the assertion goes 'under an HTTP sampler', which is useful. However, it does not say when to choose a size assertion over the other assertion tools, nor mention any exclusions or prerequisites.

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