Control Charts, Run Rules & Shift Detection (SPC)
process_monitorStatistical process control for any metric stream. From rows of metric, time and value (or count and sample size for rates, or a sample id for subgroups, or a wide export with one column per metric) it returns, per metric: the fitting control chart (I-MR, X-bar R / S, p, np, u, c; Laney p'/u' for large samples; hourly / daily means for high-frequency data); limits from a stable baseline with out-of-limit baseline points set aside; Western Electric (default) or Nelson run-rule signals with plain explanations and better / worse verdicts; CUSUM and EWMA for small sustained shifts with change point and new level; incidents (alerts merged so one problem is one alert); spread chart; capability (Cp, Cpk, Pp, Ppk) against spec / SLA limits; autocorrelation check; limits to store for continuous watching. Decision cards first. Up to 20,000 rows; larger: process_monitor_get_engine.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "process_monitor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lsl | No | Lower spec / SLA limit (all metrics; per metric via metrics). | |
| usl | No | Upper spec / SLA limit (all metrics; per metric via metrics). | |
| chart | No | auto | |
| laney | No | auto | |
| rules | No | western_electric | |
| ewma_L | No | ||
| limits | No | Stored limits from an earlier run (metrics[].limits_to_store): metric, chart, center, sigma, laney_factor; or center + ucl + lcl. | |
| series | No | Long: metric, timestamp, value (or count + size, or sample id). Wide: timestamp + one numeric column per metric. | |
| cusum_h | No | ||
| cusum_k | No | ||
| metrics | No | Per-metric settings: metric, chart, direction, lsl, usl, baseline_end, baseline_points, subgroup_by. | |
| direction | No | ||
| ewma_lambda | No | ||
| ewma_limits | No | exact | |
| max_metrics | No | ||
| subgroup_by | No | none | |
| baseline_end | No | Last date of the baseline (YYYY-MM-DD). | |
| incident_gap | No | ||
| sigma_method | No | auto | |
| recent_points | No | ||
| clean_baseline | No | ||
| laney_min_size | No | ||
| baseline_points | No | ||
| laney_threshold | No | ||
| max_points_listed | No | ||
| autocorrelation_threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alerts | No | ||
| status | Yes | 1 = ok, 0 = nothing could be checked | |
| message | No | ||
| metrics | No | ||
| summary | No | ||
| metadata | Yes | ||
| decisions | Yes | Plain-language cards, priority order. Relay these first. | |
| assumptions | No | ||
| data_quality_report | No |