Skip to main content
Glama

Convert OpenAPI / Swagger to JMeter JMX Test Plan

convert_openapi_to_jmx

Convert an OpenAPI 3.0/3.1 or Swagger 2.0 document (JSON or YAML) into a JMeter 5.6.3 .jmx test plan: servers become HTTP Request Defaults/${BASE_URL}, path parameters become User Defined Variables, request bodies are sampled from schemas, bearer/basic/apiKey security becomes ${AUTH_TOKEN}/${BASIC_AUTH}/${API_KEY}, with optional method, tag, and deprecated-operation filters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoOnly include operations with one of these tags ("default" = untagged). Empty = all.
inputYesOpenAPI 3.x or Swagger 2.0 document as JSON or YAML text (max 1MB).
methodsNoHTTP methods to include (default: GET, POST, PUT, PATCH, DELETE).
threadsNoThread concurrency / virtual users (default: 10).
loopCountNoLoop count (-1 for infinite, default: 1).
serverIndexNoZero-based index of the OpenAPI server to use (default: 0).
testPlanNameNoName of the JMeter Test Plan.
maxOperationsNoMaximum number of operations to convert (default: 500).
rampUpSecondsNoRamp-up time in seconds (default: 5).
durationSecondsNoTest duration in seconds (0 = disabled, default: 0).
parameterizeHostNoExtract the common host into HTTP Request Defaults and ${BASE_URL} (default: true).
useExampleValuesNoSubstitute example/sample values into path params instead of ${var} variables (default: false).
includeAssertionsNoAdd HTTP 200/201/204 Response Code assertions (default: true).
includeDeprecatedNoInclude deprecated operations (default: false).
includeCookieManagerNoInclude HTTP Cookie Manager (default: true).
includeOptionalQueryParamsNoInclude optional query parameters (default: false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses concrete transformation mappings (servers to HTTP Request Defaults/${BASE_URL}, path params to User Defined Variables, security to ${AUTH_TOKEN}/${BASIC_AUTH}/${API_KEY}) and the available filters. It stops short of stating whether the .jmx is returned inline vs. saved, or whether the spec is validated.

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?

A single dense, front-loaded sentence with no filler; every clause conveys a distinct transformation. It is a long run-on rather than a structured list, which slightly hurts scannability.

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?

There is no output schema, so the description should clarify the return value, yet it never says whether the generated .jmx is returned as text, a path, or a stored file, nor how errors on malformed specs are surfaced. The output-content mapping is covered, but the response contract is not.

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 all 16 parameters are already documented in the schema. The description adds only implicit context, tying server/path-param behavior to parameterizeHost and useExampleValues, without new per-parameter detail. Baseline 3 is appropriate.

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?

States a precise verb (convert), source formats (OpenAPI 3.0/3.1, Swagger 2.0, JSON or YAML), and a specific target artifact (JMeter 5.6.3 .jmx test plan). An agent can immediately tell this apart from convert_curl_or_har_to_jmx by input type.

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 accepted input formats imply when to reach for this tool, but it never names an alternative or states when NOT to use it (e.g., versus convert_curl_or_har_to_jmx). Usage is inferable from the input contract rather than explicitly guided.

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.