List accounts
list-accountsOne entity's chart of accounts as it stands in the books, by code: each account's id, code, name and classification.
WHEN TO USE:
Finding an account's id before a journal entry, a mapping, a register read or a schedule
"What accounts do we have?", or every expense account (
classification='expense')
PARAMETERS:
classification (optional):
asset,liability,equity,revenue,expense,gainorlossis_active (optional): true for active accounts only, false for retired ones; omit for both
entity_id (optional): omit for the group parent
limit (optional, default 100, 1 to 1000) and offset (optional, default 0): one page
RETURNS:
accounts: each with id, code, name, description, trait (its classification), sub_classification, balance_type, parent_id and depth (the chart's hierarchy), currency, is_active, is_placeholder, account_type, and the source system's external_id and external_source. pagination gives the total and whether more follow.
RELATED TOOLS:
get-account-register — one account's lines
get-trial-balance — every account's balance over a window
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list-accounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| entity_id | No | The entity whose books this acts on, by id (get-graph-info lists them). Omit for the group parent. | |
| is_active | No | ||
| classification | No | The statement classification, e.g. `asset` or `expense`. |