Skip to main content
Glama

JMeter Docs

Convert cURL or HAR to JMeter JMX Test Plan

convert_curl_or_har_to_jmx

Convert one or more cURL commands or HAR (HTTP Archive 1.2) JSON traces into a valid, production-ready Apache JMeter .jmx test plan XML with HTTP Request Defaults, Header Managers, Cookie Managers, timeouts, and assertions. Supports GET, POST, PUT, DELETE, PATCH, and RFC 9838 QUERY methods.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYescURL command string (single, multiline, or batch) or HAR 1.2 JSON text (max 1MB).
threadsNoThread concurrency / virtual users (default: 1).
loopCountNoLoop count (-1 for infinite, default: 1).
testPlanNameNoName of the JMeter Test Plan (default: "cURL Converted Plan").
rampUpSecondsNoRamp-up time in seconds (default: 1).
durationSecondsNoTest duration in seconds (0 = disabled, default: 0).
parameterizeAuthNoExtract Bearer token into ${AUTH_TOKEN} variable (default: true).
parameterizeHostNoExtract common host into HTTP Request Defaults and ${BASE_URL} (default: true).
includeAssertionsNoAdd HTTP 200/201/204 Response Code assertions (default: true).
filterStaticAssetsNoFilter out images/css/fonts when parsing HAR (default: true).
includeCookieManagerNoInclude HTTP Cookie Manager (default: true).

Schema Changelog

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

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

There are no annotations, so the description carries the behavioral transparency burden. It discloses the structure of the generated JMeter plan and supported HTTP methods, but it does not explain failure behavior, how the output is returned, or how sensitive auth headers are handled. The non-destructive conversion nature is reasonably evident, but some behavioral gaps remain.

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 with no wasted words. It front-loads the primary action and inputs, then packs output structure and supported methods into a compact list. Every clause contributes useful information.

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?

Given the rich parameter schema and clear purpose, the description sufficiently covers the core contract: what inputs are accepted, what artifact is produced, and which JMeter components are included. It could be stronger with a note about output delivery or limitations, but it is not missing critical information for correct invocation.

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%, with all 11 parameters documented, so the baseline is 3. The tool description adds high-level context about generated JMeter elements and supported methods, but it does not need to restate parameter details because the schema already provides thorough descriptions and defaults.

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 ('Convert') and clearly names the inputs ('cURL commands or HAR JSON traces') and output ('Apache JMeter .jmx test plan XML'). It also lists generated JMeter elements and supported HTTP methods, making the tool's purpose unambiguous and distinct from sibling utility tools.

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 clearly establishes the conversion use case: converting HTTP capture formats into a JMeter test plan. It does not explicitly discuss when not to use the tool or compare against alternatives, but no sibling directly offers the same conversion capability, so the context is clear enough for an agent to route appropriately.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.