add_ledger
Make a table of dated entries in its own section: a date column, made for you, plus the columns you name. Use one for observations that arrive on their own days rather than on the model's periods — a price series, a blotter, a general ledger — and read it from the model with the LEDGER_ aggregations, never by naming a column in a formula. Fill it with feed_fill or entries_add. spans makes a second date column for records that cover a period rather than a moment — a reported quarter, a month's bill — which LEDGER_PRORATA then shares across the periods each one covers, and a frame column saying how often each entry was reported (annual, half_year, quarterly), which is what a formula selects one frequency on — a year and its own quarters may not be aggregated together.
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>",
"path": "<path>",
"columns": "<columns>"
},
"name": "add_ledger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The section it occupies, e.g. `fx` or `market.prices`. It must not exist yet. | |
| model | Yes | Model uid (`model_…`), from model_list. | |
| spans | No | Make a `starts` column beside the date column, so an entry may cover a period rather than a moment — the date column then holds where its span *ends*. Only LEDGER_PRORATA reads it: every other aggregation still books each entry on its own day. Use it for records that are about a span (a reported quarter, a month's electricity) and leave it off for observations of a moment (a price, a posting). | |
| title | No | ||
| columns | Yes | ||
| undated | No | A table whose entries have no day of their own — a chart of accounts, a list of products, a mapping from codes to names. No date column is made, its entries are booked without one, and no LEDGER_ aggregation books them into a period: it is read by its other columns. Leave it off for anything that happened on a day. | |
| dateField | No | The local name of the date column. Default `date`; every aggregation buckets by it. |