pivot_trial_balance_by_account_group
Retrieves trial balance totals grouped by account group for specified periods, summing account amounts into one row per group in a single unpaginated response.
Instructions
PREFERRED for financial data retrieval. Returns a trial balance pivoted by account group — one row per account group with amounts summed across all accounts in that group, for each requested period. All data is returned in a single response with NO pagination. Use this tool whenever the user asks about balances or totals grouped by account group (e.g. "Cash and Cash Equivalents", "Accounts Payable"). You must provide at least one periodId — use search_periods first to find period IDs if needed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"collectionId": "<collectionId>",
"periodIds": "<periodIds>"
},
"name": "pivot_trial_balance_by_account_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entityIds | No | Optional. Scope results to specific entities. If omitted, all entities in the project are included. | |
| periodIds | Yes | One or more period IDs to include in the pivot. Required. Use search_periods to find period IDs. | |
| collectionId | Yes | The project ID | |
| fsGroupCodes | No | Optional. Filter to specific financial statement groups: a (asset), l (liability), q (equity), r (revenue), x (expense). | |
| accountGroupIds | No | Optional. Filter to specific account group IDs. | |
| interimPeriodId | No | Optional. Filter unadjusted balances and adjustments to a specific interim period. | |
| adjustmentTypeIds | No | Optional. Explicit list of adjustment type IDs to include. If omitted, all types except "passed" are included. Use list_adjustment_types to find valid IDs. |