13-Week Cash Flow Forecast — Get Engine Script (large ledgers)
cash_forecast_get_engineFor ledgers above the cash_forecast caps (over 5,000 open invoices, 50,000 history rows or 5,000 bills), more simulation paths, or files already in your code sandbox. Returns a complete numpy-only Python script with the same engine as cash_forecast; it reads the CSV / TSV / JSON files named in the call, prints the decision cards and the weekly table, and writes the full result to cash_forecast_result.json and the snapshot to payment_behaviour_snapshot.json. No data reaches this server on this path.
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": "cash_forecast_get_engine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | Other inputs exactly as cash_forecast takes them (opening_balance, minimum_cash, as_of, scenarios, n_paths up to 50,000 ...). | |
| actuals_path | No | actuals file in your sandbox (CSV/TSV/JSON). | |
| ap_open_path | No | ap_open file in your sandbox (CSV/TSV/JSON). | |
| ar_open_path | No | ar_open file in your sandbox (CSV/TSV/JSON). | |
| payroll_path | No | payroll file in your sandbox (CSV/TSV/JSON). | |
| new_sales_path | No | new_sales file in your sandbox (CSV/TSV/JSON). | |
| recurring_path | No | recurring file in your sandbox (CSV/TSV/JSON). | |
| statutory_path | No | statutory file in your sandbox (CSV/TSV/JSON). | |
| ap_history_path | No | ap_history file in your sandbox (CSV/TSV/JSON). | |
| ar_history_path | No | ar_history file in your sandbox (CSV/TSV/JSON). | |
| fixed_inflows_path | No | fixed_inflows file in your sandbox (CSV/TSV/JSON). | |
| fixed_outflows_path | No | fixed_outflows file in your sandbox (CSV/TSV/JSON). | |
| previous_forecast_path | No | previous_forecast file in your sandbox (CSV/TSV/JSON). | |
| payment_behaviour_snapshot_path | No | payment_behaviour_snapshot file in your sandbox (CSV/TSV/JSON). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| paths | No | ||
| script | Yes | ||
| language | No | ||
| requires | No | ||
| writes_file | No | ||
| instructions | Yes | ||
| engine_version | Yes | ||
| scipy_required | No | ||
| data_requirements | No | ||
| network_access_required | No |