Compute forecast
compute-forecastWalks a forecast block's driver cascade month-by-month forward from its anchor (with base_anchor='seam', the default, the newest closed month inside the horizon; with 'fixed', the block's base_period): lever-driven rs-driver Derive rules in dependency order, carry-forward for unmodeled income-statement lines, calc-DAG subtotals — upserting per forward month a scenario income-statement FactSet, a balance-sheet set (the full roll when the anchor month has an actual balance sheet, else only the rule-driven working-capital instants) and a derived cash-flow set when an actual one exists, all keyed by the block's scenario_id (NULL = actuals; scenario reads pass it as a filter). Re-running replaces each month's values. Rules with missing lever months or unbound operands are skipped with a reason (their targets fall back to carry-forward). Each month's sets are verified; a month that fails halts the walk there (halted_at), since every later month would be derived from it. Deterministic and non-AI — no credits consumed.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"structure_id": "struct_fy26_budget"
},
"name": "compute-forecast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| months | No | Forward months to compute — defaults to the block's full horizon_months; must not exceed it (lever assertions don't extend past the horizon). | |
| entity_id | No | Entity to compute for. Defaults to the lever FactSet's entity (the entity the scenario was authored against). | |
| structure_id | Yes | Forecast block structure (block_type='forecast') to compute. |