Detect unusual days (OAuth)
detect_anomaliesDetect recent days with unusual YouTube view spikes or drops against a median baseline and flag days that lost subscribers.
Instructions
Find recent days with unusual views (spikes and drops against the median of the days before) and days that lost subscribers.
Data ends ~2 days ago because analytics lag. Requires OAuth.
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": "detect_anomalies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Recent days to check. | |
| threshold | No | Spike: views >= threshold x baseline median; drop: <= median / threshold. | |
| baseline_days | No | Days before each checked day used as its baseline. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||