whatap_apm_anomaly
Detects APM anomalies by running parallel MXQL queries for TPS, response time, errors, and active transactions, then flags latency spikes, error surges, TPS drops, and transaction pileups.
Instructions
Multi-query APM anomaly detection. Executes 4 MXQL queries in parallel (TPS, response time, errors, active transactions per agent), then applies statistical analysis to detect latency spikes, error surges, TPS drops, and transaction pileups.
PREREQUISITES: projectCode from whatap_list_projects (must be an APM project).
Example: whatap_apm_anomaly(projectCode=12345, timeRange="5m", sensitivity="medium")
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": {
"projectCode": "<projectCode>"
},
"name": "whatap_apm_anomaly"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeRange | No | Time range (default: "5m"). Examples: "5m", "1h", "6h", "1d", "last 30 minutes". | 5m |
| projectCode | Yes | Project code (pcode). Get this by calling whatap_list_projects first — it returns all accessible projects with their pcodes. | |
| sensitivity | No | Anomaly detection sensitivity: "low" = only major issues (3σ threshold), "medium" = balanced (2σ, default), "high" = catch subtle issues (1.5σ). | medium |