List chart accounts
list_chart_accountsLists chart accounts with their current balances, for one chart or for every active chart when chart_id is omitted. Each row reports chart_account_id, chart_id, chart_account_code, chart_account_name, chart_account_type, base_number, parent, role (account, which takes postings, or category, which sums the accounts under it), control, policy description, and total — the signed sum of unvoided journal lines. include_zero_accounts defaults to true. An unknown chart_id is chart_not_found, not a widened query. Read-only and not metered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chart_id | No | Optional chart id (active or retired). An unknown or cross-workspace chart_id returns chart_not_found. Defaults to all active charts in the workspace. | |
| workspace_tag | Yes | Active workspace id (the workspace_tag create_workspace and list_workspaces return). | |
| include_zero_accounts | No | Include accounts with no posted balance. Defaults to true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | Yes | Stamped engine build/version identity for the tool result. | |
| status | Yes | chart_accounts_listed on success. | |
| accounts | Yes | Chart-account rows. | |
| chart_id | Yes | Chart filter, when supplied. | |
| row_count | Yes | Number of chart-account rows. | |
| workspace_tag | Yes | Workspace scoped by the tool call. |