tm_analyse_capture
Analyzes a JSONL traffic capture to propose a profile structure, returning per-endpoint URL skeletons, RPS curves, and extracted variables for load-testing profile creation.
Instructions
Analyse a JSONL traffic capture and return the proposed profile structure.
capture_path must point to a .jsonl file under
$TM_MCP_CAPTURE_ROOT (defaults to
~/.trafficmorph/captures/). .jsonl.gz and other
compressed forms are NOT supported — the server-side parser
reads plain text only. Symlinks resolving outside the root,
path-traversal sequences, and other extensions are rejected
by the path validator in :mod:tm_mcp.capture_path — see its
module docstring for the security rationale.
Returns per-endpoint analysis: URL skeleton with $$macro$$
placeholders, derived RPS curve, extracted variables, sample
URLs. No state is persisted. Pair with
:func:tm_import_capture to actually create profiles from
the analysis.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"capture_path": "<capture_path>"
},
"name": "tm_analyse_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| capture_path | Yes |