perfsage-jmeter-mcp
v0.2.1PerfSage JMeter MCP - self-healing JMeter environments, auto-correlated scripts, adaptive workload discovery, and SLO-aware analysis for LLM agents
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
diagnose_environment
Read-only environment diagnosis for Java, JMeter, plugins, and Docker. Use before planning work when you only need readiness details. Returns an EnvironmentReport with ready/java/jmeter/plugins fields.
ensure_environment
Diagnose and heal the local JMeter runtime (JDK, JMeter, plugins, Docker). Call when the host may lack a usable runtime. Returns a ProvisionResult describing actions taken and the resulting execution_mode. Set force_docker=true to prefer Docker when docker_available (even if native is ready).
| Parameter | Type | Description |
|---|---|---|
allow_download | boolean | |
force_docker | boolean |
import_traffic
Import HAR, OpenAPI, or Postman traffic into a normalised Flow. Use at the start of scripting. kind=auto detects by extension/content. Returns flow JSON plus request_count. Response headers/bodies are omitted unless include_response_detail=true.
| Parameter | Type | Description |
|---|---|---|
source_path * | string | |
base_url | ||
include_response_detail | boolean | |
include_static | boolean | |
kind | string |
correlate_flow
Detect dynamic values and rewrite the flow with JMeter variables. Use after import_traffic. Accepts a flow object or a persisted flow_path. Returns the correlation report, rewritten flow, and a new flow_path.
| Parameter | Type | Description |
|---|---|---|
flow * | ||
confidence_floor | number |
generate_jmx
Build an Apache JMeter 5.6.3 plan from a correlated flow and workload. Use after correlate_flow. Accepts a flow object or a persisted flow_path. Returns the written path and inline jmx (or jmx_truncated when the XML exceeds 200_000 characters).
| Parameter | Type | Description |
|---|---|---|
correlation_report * | object | |
flow * | ||
workload * | object | |
output_path |
edit_jmx
Apply structured edits to an existing JMX plan and write a new file. Use after generate_jmx (or with a hand-written single-ThreadGroup plan). The LLM translates natural-language asks into operations such as set_workload (fixed/ramp/stress/burst), change_method, wrap_loop, wrap_while, and add_jsr223. Writes a new plan by default; set overwrite=true only to replace plan_path. Returns path, summary, ops_applied, and next_action.
| Parameter | Type | Description |
|---|---|---|
operations * | array | |
plan_path * | string | |
output_path | ||
overwrite | boolean |
run_test
Execute a JMX plan with always-on guardrails and streamable JTL output. Calls ensure_environment first. Returns RunResult fields, run_id, and the provisioning block. Loose guardrails require acknowledged_risk (alias i_understand_the_risk). Optional run_id must match [A-Za-z0-9._-]{1,64}; collisions require overwrite=true. force_docker prefers Docker when available.
| Parameter | Type | Description |
|---|---|---|
plan_path * | string | |
force_docker | boolean | |
generate_html_report | boolean | |
guardrails | ||
overwrite | boolean | |
properties | ||
run_id | ||
timeout_seconds |
discover_workload
Find a capacity knee by stepping concurrency via -Jperfsage.threads. Calls ensure_environment first. Each step reuses the same plan and overrides thread count/duration through JMeter properties. Returns DiscoveryOutcome plus provisioning and a recorded run_id. Optional run_id must match [A-Za-z0-9._-]{1,64}; collisions require overwrite=true.
| Parameter | Type | Description |
|---|---|---|
plan_path * | string | |
discovery | ||
guardrails | ||
overwrite | boolean | |
run_id |
analyze_results
Summarise a JTL and rank bottleneck findings at p95/p99. Use after a completed run. Returns summary metrics and findings.
| Parameter | Type | Description |
|---|---|---|
results_path * | string |
evaluate_slo
Gate JTL results against an slo.properties file. Use for CI pass/fail decisions. Returns an SLOVerdict with compliance_pct.
| Parameter | Type | Description |
|---|---|---|
results_path * | string | |
slo_path * | string |
correlate_with_signalpilot
Merge Kubernetes RCA from SignalPilot for a recorded run window. Use when client-side latency needs server-side explanation. Returns a SignalPilotReport (available=False when the CLI is missing).
| Parameter | Type | Description |
|---|---|---|
namespace * | string | |
run_id * | string | |
context |
compile_report
Compile Markdown/HTML/JSON artifacts with a verdict-led summary. Use after analyze/evaluate. Optionally evaluates SLOs, SignalPilot, and Reveal. For discovery runs, set use_knee_results=true to analyze/SLO the knee step JTL when a knee exists (default remains the last step for compatibility). Returns verdict, written paths, and the report dict.
| Parameter | Type | Description |
|---|---|---|
run_id * | string | |
namespace | ||
slo_path | ||
use_knee_results | boolean | |
use_reveal | boolean |