Tools

The rampa MCP server provides six tools for load test lifecycle management, metric retrieval, and threshold evaluation.

Start Run

Start a new load test from a script path.

start_run
Stop Run

Gracefully stop a running test.

stop_run
Get Status

Poll whether a run is active or completed.

get_status
List Runs

List all active and completed runs.

list_runs
Get Metrics

Retrieve metric snapshots with percentiles.

get_metrics
Get Thresholds

Evaluate threshold pass/fail results.

get_thresholds

Run Lifecycle mutating

start_run

start_run
mutating tool
mutating tool
start_run

Start a load test from a Python script.

Returns:

dict[str, str]

Start a new load test from a script path. Returns the run_id and initial status.

Parameters

Parameter

Type

Required

Default

Description

script_path

t.Annotated[str, Field(description='Path to the test script.')]

yes

vus

t.Annotated[int | None, Field(default=None, description='Override VU count.')]

no

duration

t.Annotated[str | None, Field(default=None, description='Override duration (e.g. 30s, 1m).')]

no

scenario

t.Annotated[str | None, Field(default=None, description='Run a specific scenario only.')]

no

stop_run

stop_run
mutating tool
mutating tool
stop_run

Stop a running load test. Idempotent.

Returns:

dict[str, str]

Gracefully stop a running test. Idempotent — calling on a completed run returns already_completed.

Parameters

Parameter

Type

Required

Default

Description

run_id

t.Annotated[str, Field(description='The run identifier.')]

yes

reason

t.Annotated[str | None, Field(default=None, description='Optional stop reason.')]

no

get_status

get_status
readonly tool
readonly tool
get_status

Get current status of a test run.

Returns:

dict[str, t.Any]

Poll whether a run is still active or has completed.

Parameters

Parameter

Type

Required

Default

Description

run_id

t.Annotated[str, Field(description='The run identifier.')]

yes

list_runs

list_runs
readonly tool
readonly tool
list_runs

List all active and completed test runs.

Returns:

list[dict[str, str]]

List all active and completed runs with their run_id, status, and script_path.

Metrics readonly

get_metrics

get_metrics
readonly tool
readonly tool
get_metrics

Get metrics for a test run. Optionally filter by metric name.

Returns:

dict[str, t.Any]

Retrieve the latest metric snapshot for a run. Without a metric_name filter, returns all metrics including timing percentiles, counters, and rates.

Parameters

Parameter

Type

Required

Default

Description

run_id

t.Annotated[str, Field(description='The run identifier.')]

yes

metric_name

t.Annotated[str | None, Field(default=None, description='Filter to a specific metric.')]

no

Thresholds readonly

get_thresholds

get_thresholds
readonly tool
readonly tool
get_thresholds

Get threshold evaluation results for a test run.

Returns:

dict[str, t.Any]

Evaluate threshold results for a completed run. Returns pass/fail status with actual vs expected values for each threshold expression.

Parameters

Parameter

Type

Required

Default

Description

run_id

t.Annotated[str, Field(description='The run identifier.')]

yes