pivot_trial_balance_by_account
Returns a trial balance pivoted by account, showing unadjusted balance, total adjustments, and adjusted balance per selected period for account-level financial analysis.
Instructions
PREFERRED for financial data retrieval. Returns a trial balance pivoted by account — one row per account with the unadjusted balance, total adjustments, and adjusted balance for each requested period. All data is returned in a single response with NO pagination. Use this tool whenever the user asks about account balances, trial balances, or financial position at the account level. 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"
}
}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. | |
| accountIds | No | Optional. Filter to specific account 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. |