Financial time series (monthly)
financial_timeseriesA month-by-month series of this company's figures over a window, in one call: per month revenue, cogs, grossProfit, opex, netIncome, cashClose, arClose, apClose and netCashMovement, in MYR. from and to are YYYY-MM, inclusive, at most 36 months. metrics limits what is computed (any of pnl, cash, ar, ap, cashflow; default all); a metric left out is omitted from every month, not zeroed. A month still running comes back partial: true with through (today): its figures are month-to-date. Months that ended before the company's accounting start date are left out of the series, not zeroed (that history is in the old system; a note names the cutover date, and back-dated entries before it can still show on /reports), and the month containing that date is partial: true with startsAt. Months not yet started are absent too. An absent month is missing history, not a month without trading. Every figure comes from the same engine as the web reports for the exact dates stated: the P&L from /reports; cashClose from the cash-position liquid set (cash, banks, gateway clearing; owner advances and card debt are not in it); arClose and apClose from the aging totals at month end; netCashMovement from the cash-flow report. netCashMovement and the change in cashClose use different account sets, so they can differ. A window too wide for the call's time budget is refused, naming how many months it managed. It returns figures only: no ratios, growth rates, trend labels or commentary.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "financial_timeseries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| metrics | No | Families of figures to compute: any of pnl, cash, ar, ap, cashflow. Omitted: all five (an empty list is refused). A family left out is omitted from every month, not zeroed. |