Profit drivers
profit_driversWhy net profit moved: a deterministic breakdown, not a model's arithmetic. Compares the current month-to-date with the same day-span of the previous month (day 1 to the smaller of today's day and the prior month's last day), so a partial month is not set against a full one. Returns net profit for both windows and the delta; a drivers bridge (revenue delta, COGS delta, then the operating-expense accounts that moved most: the top 5 by absolute change plus an other roll-up); oneOffs (disposal and FX gains or losses, kept out of the movers; empty when there are none); the prior month's full-month net profit (priorMonthFull); and assumptions. Each driver's direction is its effect on profit ('improving', 'worsening', 'flat'). Amounts are integer cents (RM = cents ÷ 100). month picks another month; a completed past month compares its whole length. On periodic stock with no stock take this financial year and COGS of RM 0 in the window, a notes line says the gross-profit picture is incomplete: COGS is not a real driver there.
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": "profit_drivers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| month | No | Month to analyse, `YYYY-MM`. Omitted: the current month-to-date. |