Initialize chart of accounts
initialize-chart-of-accountsCreate the graph's chart of accounts from a shipped template — the fresh-company path to native books. Use when the graph has NO chart (a QuickBooks-synced tenant never needs this: its chart arrives with the sync and stays after a sever) and before connecting a bank feed, which needs a chart to resolve against. Templates: saas (subscription software), services (professional services), product (inventory and COGS), consolidation (a group's consolidation entity — the adjustments column, never an operating company's chart). Creates the chart, its coa_mapping structure and the template's CoA → rs-gaap mapping associations in one transaction, with the equity rows mapped by the entity's legal form (entity_type, defaulting to the entity's). Each entity of the group keeps its own chart: entity_id names a subsidiary, omitted means the group parent. One-time per entity: 409 once that entity has a chart — a chart is never replaced. Customize afterwards with update-taxonomy-block; accounts that carry activity are never deleted.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"template": "saas"
},
"name": "initialize-chart-of-accounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Chart display name. Defaults to 'Chart of Accounts'. | |
| template | Yes | Template key: `saas` (subscription software — deferred revenue, cost of revenue, R&D / S&M / G&A), `services` (professional services — no inventory, no COGS), `product` (inventory and cost of goods sold, direct + wholesale + subscription revenue), `consolidation` (a group's consolidation entity: the eliminated investment, intercompany and subsidiary-equity rows, noncontrolling interest and its share of income — the adjustments column, never an operating company's chart). | |
| entity_id | No | The entity to give a chart to, by id. Omit for the group parent. A sibling already having one is no bar. | |
| entity_type | No | Legal form for the equity mapping: `corporation`, `llc` or `partnership` have rows of their own; any other form maps as a corporation. Defaults to the graph's primary entity, then to corporation. |