Skip to main content
Glama
juliodelimas

jmeter-mcp-server

by juliodelimas

add_duration_assertion

Add a duration assertion under an HTTP sampler to automatically fail samples exceeding maxDurationMs.

Instructions

Add a Duration Assertion under an HTTP sampler, failing the sample if it takes longer than maxDurationMs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoDuration Assertion
planIdYes
parentIdYes
maxDurationMsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.5

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral disclosure burden. It does disclose the core effect ('failing the sample if it takes longer than maxDurationMs') and the placement. However, it does not state that this mutates the test plan, that the sampler must already exist, or what happens if parentId is invalid.

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 with no filler. The action, placement, and behavior are front-loaded, and every phrase adds information.

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 add-operation with no annotations and no output schema, the description covers the main action and effect, but omits prerequisites (existing plan/sampler), mutation side effects, and error conditions. It is minimally adequate but not fully complete.

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 0%, so the description must compensate. It explains maxDurationMs (the duration threshold) and parentId (must be an HTTP sampler). It does not explain planId or the optional name parameter, leaving a gap for those 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 uses a specific verb ('Add'), names the resource ('Duration Assertion'), specifies placement ('under an HTTP sampler'), and states the behavioral effect ('failing the sample if it takes longer than maxDurationMs'). This clearly distinguishes it from sibling assertion tools like add_response_assertion and add_size_assertion.

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 phrase 'under an HTTP sampler' gives clear placement context, telling the agent that parentId must reference an HTTP sampler. It does not explicitly name alternatives or exclusions, but the context is sufficient for this simple add-operation.

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