Create chart-scoped Standard Declaration
create_standard_declaration_chartAuthors one sealed declaration whose meaning belongs to exactly one chart, selected by chart_id. Choose journal_entry, journal_entry_void, or retirement, and state the accountable assertion in ordinary language — account codes are not needed, because the chart's accounts are supplied to the model. The result is validated with the exact parser register uses: dates, balance, references, attribution, chart account codes, and that the document's "chart" is this chart's name (chart_mismatch otherwise).
When the description is genuinely ambiguous the result is clarification_needed with one specific question — answer it and call again. Nothing changes the books; review the returned document and register it when ready. A journal entry, a void or a retirement changes the books only when post_chart_accounts posts its chart. Lines post to accounts (role account in list_chart_accounts), never to a category. Model-backed and metered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| author | No | Accountable author of the declaration. | |
| chart_id | Yes | The one chart this declaration belongs to. Required so duplicate chart names cannot be selected by label. | |
| document | No | The document arm: a complete declaration JSON document of the named kind (what get_declaration or open_standard_document returns, or a reviewed hand-authored body) to validate against this chart and seal exactly as given. Its "chart" must be this chart's name, not its chart_id (chart_mismatch). No model call; llm_called is false. Exclusive with description. | |
| approved_by | No | Optional approver. | |
| declaration | Yes | Which kind to write. | |
| description | No | The accountable assertion in ordinary language. Account codes are not needed — the chart's accounts are supplied to the model. | |
| workspace_tag | Yes | Active workspace id (the workspace_tag create_workspace and list_workspaces return). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | Yes | Stamped engine build/version identity for the tool result. | |
| status | Yes | declaration_created, or clarification_needed when the request was ambiguous and the model asked instead of guessing. | |
| file_name | No | Suggested file name for keeping the document durably. Absent on clarification_needed. | |
| llm_called | No | True when a model authored it (one metered pass); false when the document arm sealed the caller's own document. | |
| declaration | No | The declaration document to review, keep, and submit. Absent on clarification_needed. | |
| next_action | Yes | How to admit the document, or how to resolve the clarification. | |
| content_hash | No | Canonical content hash — the declaration's durable identity. Absent on clarification_needed. | |
| clarification | No | The one specific question blocking authorship. Present only on clarification_needed; answer it and call again. | |
| declaration_kind | Yes | The kind that was written (or asked about). |