list-open-anomaly-cases
Summarize anomaly cases of a Monatsreporting run by default (counts, sums, top cases); view cases lists single cases, filtered and paginated. status: open (default), decided (resolved/dismissed) or all. Filters for both views: kind, severity, category (label name; ambiguous names are rejected, then pass pnl_label_id), pnl_label_id, cost_center, min_abs_delta. by_cost_center entries carry hidden (cost center hidden in the app); they are marked, never dropped. Amounts (actual, reference, delta = actual - reference, delta_pct) are taken unchanged from the detection rules and follow their sign convention; only budget_deviation and mom_outlier carry delta (sign_flip fills actual from current, duplicate_suspicion from amount, missing_account has no amount). Sums (sum_abs_delta) are given per kind only, never mixed across kinds; kinds without delta report sum_abs_delta null and cases_without_delta. commentary is the case note (Reporting-Vermerk): while the case is open it is material for the comment of the position; once a person accepts the comment in the app it holds the short form of that comment. The report shows the comments (see list-comment-status), not case notes. commentary_source says who wrote the note (ai = AI review, user = a person, null = older case). follow_up is a check of an earlier watch item (the case carries watch with the original statement and the result of the check: recurred true/false/null from the detection, position_missing true when the position could not be assessed in this month - then it is never "did not recur"). Each case carries clarification (the one open or answered question with its context, suggestions and answer) or null; the summary counts open_clarifications and follow_ups. updated_at is the last change of the case (not the decision time). READ ONLY.
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": {
"run_id": "<run_id>"
},
"name": "list-open-anomaly-cases"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | view summary: number of top cases (default 20, max 50) | |
| kind | No | Filter by case kind | |
| view | No | summary (default): counts, sums and top cases; cases: single cases, paginated | |
| limit | No | view cases: page size (default 50, silently capped at 200) | |
| run_id | Yes | UUID of the run | |
| status | No | open (default): unresolved cases; decided: resolved + dismissed; all: both | |
| after_id | No | view cases: cursor, the next_cursor of the previous page | |
| category | No | Filter by P&L category, name as shown in the app | |
| severity | No | Filter by severity | |
| cost_center | No | Filter by cost center | |
| pnl_label_id | No | Filter by P&L category id (UUID); use when the category name is ambiguous | |
| min_abs_delta | No | Only cases with abs(delta) at least this amount (cases without delta are excluded) |