workbook_fit
Every template in the library read against an attached workbook, so the import can be built from the blocks that fit and by hand for the rest. Three ways a workbook answers to a pattern, all tried on every template: the rows every model of the pattern has, matched by label against the template's names, aliases and titles (statements, SaaS metrics, a DCF, a market's curves, a DSGE's parameters); the rows a member of an open menu carries — a mine, a country, a project — found under the sheet's headings or in its label prefixes and returned as the pick to pass to template_get (a commodity balance); and a sheet of records whose fields answer to a template's table, with its category values matched to a closed menu (a general ledger's journal and chart of accounts). Every match is reported so you can disagree, with where the sheet types a row the pattern computes or the reverse; the template's rows are named as the template spells them, relative to the section it lands as (root, unless template_get is given at), which is the spelling rename and bind take. Then the numeric rows and record tables no present block of any pattern claims, which are built by hand from the sheet's own formulas or added as ledgers, and the rows the DSL cannot express, which are held as values and named. Step nought of an import: read this before template_get, and expect several patterns to each claim a part.
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": "workbook_fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model uid (`model_…`), from model_list. | |
| sheet | No | Fit one sheet only. Default: the whole workbook. | |
| attachment | No | The attachment id. May be omitted when one workbook is attached. |