Working capital (days + who pays slowly)
working_capitalWorking capital in days, month by month, plus who is slow to pay: where the cash went when the P&L shows a profit. from and to are YYYY-MM, inclusive, at most 36 months. months[]: per month revenue, cogs, arClose, apClose, inventoryClose, days (calendar days covered) and four ratios: debtorDays (arClose ÷ revenue × days), creditorDays (apClose ÷ cogs × days), inventoryDays (inventoryClose ÷ cogs × days) and cashConversionCycle (debtorDays + inventoryDays − creditorDays). customers and vendors: per party avgDaysToPay (amount-weighted, from the document date to the date the payment applied; a deposit or advance paid before its document applies on the document's date, so counts as 0 days), avgDaysPastDue (from the due date), invoices, paid and withTerms, slowest first, up to 50 a side with total, shown and more. A ratio with a zero denominator is null, and cashConversionCycle is null when any leg is. inventoryDays and cashConversionCycle are withheld (null, with a note) unless the company runs perpetual costing: under modified periodic, cost of goods sold is recognised only at a stock take, so a monthly figure would measure something else; inventoryClose is still returned. Payment speed excludes cash sales and cash bills, opening invoices and bills, refunds and contra set-offs. Months before the accounting start date and after today are absent. A running month is partial: true with through (today), its days counting only elapsed days; the cutover month is partial with startsAt and counts from there, so its revenue can be below financial_timeseries' figure for that month. Sources: the /reports income statement, the A/R and A/P aging totals at month end, the inventory account's balance (with any stock class accounts and work in progress); basis states every formula and input. Figures only: no verdict, benchmark or trend label. A window too wide for the time budget is refused, naming how far it got.
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": "working_capital"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes |