set_axis
Change the time axis: move its start (earlier adds history and keeps the horizon; later drops periods), set how many periods it has, or set actualsThrough — the last period that is actual, before which recorded actuals override the model and after which everything is a forecast. Pass actualsThrough: null to reopen every period. The grain cannot change. The horizon is the analyst's: an axis that would end earlier than it does now is refused until confirmShorten is true, which is only for when the analyst asked for a shorter model — a part of the model that ends earlier (a mine's reserve, a lease, a contract) states model_until or fill_until on its own section instead, with set_values on the reserved row. A change that would discard values is refused until confirmDrops is true. Reported history on the axis wants actualsThrough set and the figures recorded with set_actuals.
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": {
"model": "<model>"
},
"name": "set_axis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model uid (`model_…`), from model_list. | |
| start | No | A period label on the model's grain, e.g. 2025-01 or 2025 or 2025-Q1 or 2025-H1. | |
| periodCount | No | ||
| confirmDrops | No | Allow a shorter axis to discard the values it no longer covers. | |
| actualsThrough | No | A period label on the axis, or null to reopen. | |
| confirmShorten | No | Allow the axis to end earlier than it does now: only when the analyst asked for a shorter model, and say so in your reply. |