Create Standard Chart
create_standard_chartSeals one Standard Chart from canonical chart JSON, exactly as written and with no model: the chart_of_accounts object (guide_canonical_schema, species chart) as document, or a retained UTF-8 handle holding it. CSV, notes and Markdown are not accepted; write the chart JSON first. What is not a fact is fixed up and listed in normalized: a field name in another case or with underscores, a code given as a number, an enum value in another case, the document marker, an envelope version. A fact is never fixed up: an unknown field, a missing required field, or a chart that breaks a chart law is refused with a stable code, the JSON path, what is wrong and what is needed.
Nothing installs and no party is minted. The result carries the sealed chart inline, retains the exact sealed bytes behind a multi-read download handle, and reports compatible and exceptions against the workspace data. Review it, then register the handle. A claim binds an account a submitted register statement is about; one that binds nothing yet shows as claim_unbound when registered: submit the statements, then post_chart_accounts installs and checks the chart, and if exceptions remain, update_standard_chart proposes the repair to register and post. Journal entries post to accounts (role account in list_chart_accounts), never to a category. Not metered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | No | Workspace-scoped transfer handle naming UTF-8 bytes of that same canonical chart JSON. Exclusive with document. | |
| document | No | The canonical chart_of_accounts JSON object (guide_canonical_schema, species chart), sealed exactly as written. Exclusive with handle. | |
| source_name | No | Optional label for where the chart came from, such as books.chart.json. Defaults to user.chart.json. | |
| workspace_tag | Yes | Active workspace id (the workspace_tag create_workspace and list_workspaces return). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chart | Yes | Sealed standard chart_of_accounts JSON document. This is the reusable artifact. | |
| owner | No | Read-only preview of the FIRST owner: name and type, plus party_id/display when a live party already answers that mention, and on_submit reuse|found. Submit founds; this call does not. | |
| engine | Yes | Stamped engine build/version identity for the tool result. | |
| handle | No | Multi-read download:N handle naming the retained sealed chart bytes — save them locally and pass to verify, open, or submit. | |
| owners | Yes | Whose books: the chart's owner set, each a party mention (name, type) resolved at submit. | |
| status | Yes | chart_created on success. | |
| retained | No | Download descriptor for the retained sealed bytes: session_id, handle, file_name, media_type, byte_count, sha256, expires_at, download_program. | |
| file_name | Yes | Suggested <entity>.chart.json file name. | |
| resources | No | Related workspace resource links. | |
| chart_name | Yes | Name asserted by the chart document. | |
| llm_called | Yes | Always false: the chart is sealed exactly as given, with no model. | |
| normalized | No | What was fixed up on the way, when anything was: each with path and change (a field renamed, a code written as a string, an enum value recased, the document marker added, an envelope version removed). Facts are never fixed up. | |
| owner_match | Yes | Which account owner sets these books accept: any | all | exact | subset. | |
| source_name | Yes | Source label used for authoring context. | |
| content_hash | Yes | Canonical SHA-256 identity of the chart document. | |
| workspace_tag | Yes | Workspace that scopes authoring and metered usage. | |
| accounting_basis | Yes | cash or accrual. | |
| preview_markdown | Yes | Human-readable rendering only; never validate, submit, or install this field. | |
| chart_account_count | Yes | Number of chart-account definitions. | |
| postable_chart_account_count | Yes | Number of non-summary chart accounts. | |
| claimed_workspace_account_identifiers | Yes | Workspace-account designators claimed by chart accounts. |