template_get
A template rendered for this model: its guidance (read it — it says what to ask, what to adapt and what never to copy blindly), the blocks taken, and the exact calls that would build them — add_section, add_ledger, write_section YAML, entries_add, and chart_add for the charts the pattern is read by — already adapted to your choices. blocks takes optional blocks by id (core blocks always come, with whatever the chosen ones require), and omit leaves out a standard block, one taken by default; pick chooses from a menu such as a chart of accounts, or names the members of an open list such as a market's supply sources and demand sinks (one lower-case word each); bind maps a template row to a row the model already has, leaving the template's out and rewriting everything that read it; rename moves a row or a whole section to the name the model uses; currency replaces USD. A template lands as one section — the statements arrive as financials.income, financials.balance and the rest under one Financials — and at plants that module somewhere else instead: at of group.acquired for a second company's statements beside the first's, at of assets.north for a pattern that belongs to one asset, an empty at only when the model already holds the pattern's sections at the top level. rename and bind take the template's own names (income.revenue) or the planted ones (financials.income.revenue); a relative rename stays inside the module, and the planted name is how a section is moved out of it. Inputs come empty for the scaffold pass unless inputs is placeholders. The calls are dry-run on a copy of the model and the result says the rung they would reach, the checks that would fail, the lint they would add and the existing rows they would overwrite. Edit the YAML to fit the business — drop lines, rename, replace placeholders, add the lines the template lacks — then write it with write_section yourself, and add the template's charts with chart_add once their rows are there.
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>",
"id": "<id>"
},
"name": "template_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | The section to plant the whole module under, instead of the template's own: `group.acquired`, `assets.north`. Empty string plants it flat at the top level, which is for a model that already holds these sections there. | |
| id | Yes | A template id from template_list. | |
| bind | No | Template row → existing row: `{"income.revenue": "sales.total"}`. The template row is not written; rows that read it read the model's. | |
| omit | No | Standard blocks to leave out, by id. A standard block is taken unless omitted — the commodity balance's costs, which carry its cost curve — so omit one only when the model has no data for it, and say so. | |
| pick | No | Choices from the template's menus, by menu name: `{accounts: ["cash", "receivables"]}` from a closed list, or `{sources: ["escondida", "grasberg"]}` naming the members of an open one — a saved template's list too (`{assets: ["north", "south", "east"]}`), one section planted per name. A list inside another names each outer name's own: `{mines: ["north", "south"], "pits@north": ["a", "b"], "pits@south": ["c"]}`; a level deeper, each path of names, outermost first (`"benches@north/a": ["top", "low"]`); a path not given its own takes the list's own name (`pits`), else the author's. | |
| model | Yes | Model uid (`model_…`), from model_list. | |
| blocks | No | Optional blocks to take, by id. | |
| dryRun | No | Run the calls on a copy and report what the model would say. Default true. | |
| inputs | No | Whether inputs carry the template's placeholder numbers. Default empty: the scaffold pass. | |
| rename | No | Template row or section → the name it should have: `{"income": "pnl", "fixed_assets.capex": "fixed_assets.capital_spend"}`. | |
| variant | No | The convention for each of the template's variants, by name: `{standard: "ifrs"}` for the financial statements under IFRS. A variant not named takes its default; template_list says which variants a template has. | |
| currency | No | The model's currency, replacing USD in every unit: `EUR`, `GBP`. |