add_section
Declare a section (a group) by path, with an optional title and colour. Sections are derived from node names, so this is only needed to give one a title before its nodes exist; adding a node under a new path also works. A section that already exists is amended rather than refused: what you pass is set, what you leave off stays as it is, so this is also how a section the model already has is told what it holds. grouping says what the sections inside this one are to each other, which nothing else in the document can say: module for the stages of one thing (a Financials holding an income statement, a cash flow and a balance sheet, which read each other by design), family for several of a kind (an Assets holding North and South, which are alike and must never read each other's assumptions). Say it whenever you make a section that will hold other sections — without it the asset-boundary checks guess from shape, and a set of statements guesses as a family of mines. text is the section's prose in Markdown — a note to the accounts, a directors' report, what a block of assumptions rests on — and every figure in it is a reference, never a typed number: {{bs.receivables[2025]}} the row at a period, {{-bs.gst[2025]}} the same with its sign turned, {{valuation.npv}} a constant (or a series at its last closed period), {{valuation.per_share@upside}} the figure as another scenario has it, {{prices.close}} a table's price column at its latest entry (what a feed last pulled), {{p_loss}} a statistic of the risk specification (drawn from the simulation; never in a title). A rename carries the references; a figure the model does not hold is a row you add first and then refer to. A section is one of three kinds, never two: rows, a ledger, or a page of text. Text goes only on a text section — a section of its own with no rows, which passing text to a new section makes — never over a section of rows. Prose about the model — a valuation commentary, a note, a directors' report — lives in a text section, and a document draws it with a section block, so it is written once and every document and the grid show the same words.
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>"
},
"name": "add_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | e.g. `balance` or `income.costs`. | |
| text | No | The section's prose, Markdown, with figures as references: `{{name[2025]}}`, `{{-name[2025]}}`, `{{name}}`, `{{name@scenario}}`. Only on a text section; a new section given text is one. Replaces the text it had; an empty string empties the page. | |
| color | No | ||
| model | Yes | Model uid (`model_…`), from model_list. | |
| title | No | ||
| grouping | No | What the sections inside this one are: `module` the stages of one thing, `family` several of a kind. | |
| quantity | No | What rows made here measure unless they say otherwise. | |
| sectionType | No | What the section is: `rows` (rows over the periods) or `text` (a page of prose, holding no rows). Defaults to `text` for a new section given text, else `rows`. A ledger is made with add_ledger. |