write_section
Write whole sections as .gsm YAML — each a list of node declarations in the form model_structure returns — adding the nodes that are new and updating the ones whose names exist. Beside an input put values: (a number for every period, an array, or a map of period to value); beside a constant put constant:. Uids are minted for you. Sections that read each other (a P&L and the balance sheet it depreciates from) go in one call, because the result of every call has to be a valid model. The way to build a model: the driving sections first, then the sections that read them, checks last.
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>",
"sections": "<sections>"
},
"name": "write_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model uid (`model_…`), from model_list. | |
| sections | Yes |