anomaly_seasonal
Flag anomalous days in a country's data by removing trend and seasonal components using STL decomposition.
Instructions
Seasonal anomaly detection for a country — STL decomposition that separates trend / seasonal / residual components and flags days where the residual is anomalous after removing normal weekly/seasonal cycles.
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": {
"country_code": "<country_code>"
},
"name": "anomaly_seasonal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country_code | Yes | ISO 3166-1 alpha-2 country code |