Analytics: Get spending anomalies
get_spending_anomalies Detect categories with unusually high spending this month.
Compares current month spending to recent monthly averages.
Flags categories where spending exceeds the threshold multiplier.
Args:
months_lookback: Number of months for computing averages (default 3)
threshold: Multiplier threshold (default 2.0 = 2x the average)
Returns:
List of anomalies with category, current amount, average,
ratio, and severity (high/medium).
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": "get_spending_anomalies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threshold | No | ||
| months_lookback | No |