correlate_metrics
Computes Pearson correlations across up to 10 metric series by aligning timestamps, building an NxN matrix, and flagging correlations above |r| > 0.7 over shared time buckets.
Instructions
Compute Pearson correlation between multiple metric series. Joins the series by timestamp bucket, as wide as the coarsest series' median sample interval with finer series averaged into it, and correlates over the buckets every series holds, reported as shared_samples. Builds an NxN correlation matrix and highlights strong correlations (|r| > 0.7). Maximum 10 sources.
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": {
"sources": "<sources>"
},
"name": "correlate_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sources | Yes | List of metric sources to correlate | |
| hours_back | No | Hours of data to analyze |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labels | Yes | ||
| portal | No | The portal the call ran against, in multi-portal mode. | |
| warnings | No | ||
| hours_back | Yes | ||
| bucket_seconds | Yes | ||
| shared_samples | Yes | ||
| correlation_matrix | Yes | Pearson r for each pair of labels, in label order. | |
| strong_correlations | Yes |