Live financial statement
live-financial-statementGenerate a live financial statement directly from the current tenant's OLTP ledger data using the active CoA→GAAP mapping.
WHEN TO USE:
When the user asks for their books — "show me my income statement", "my balance sheet for Q1"
Live, up-to-the-minute data (no materialization required)
Only available on RoboLedger tenant entity graphs (not SEC shared repo)
PARAMETERS:
entity_id(optional) — the entity whose books to render; omit for the group parentscope(optional, defaultentity) —entityis one entity's own books. On the group parent,combinedsums every member consolidated in full under the parent's Reporting Style, per rs-gaap concept, for the months each was a member — the pre-adjustment total, nothing eliminated;consolidatedadds the consolidation entity, whose eliminations and noncontrolling interest are the adjustments column, so a group that posts its consolidating entries there reads its consolidated statement. An equity-method or cost member (itsconsolidation_method) is never summed. A question about "the group" readsconsolidated;combinedis the worksheet's first total.combined_entity_idson the response names who was summed, and an entity with no mapping yet is left out.consolidated: trueis the older spelling ofscope: consolidateddimension(optional, income statement only) — a management slice:{"type": "department"}returns the current window with one column per department, thenUnallocated(lines no department tags), thenTotal, anddimension.ties_outsays whether every row's members plus Unallocated equal its Total;{"type": "department", "member_id": "<id>"}reads one member's lines, current and prior (member_id: "unallocated"the untagged ones).list-dimensionsnames the axes and members. A consolidation entity's lines are untagged, so onscope: consolidatedthe eliminations read as Unallocatedinclude_sources(optional, default false) — "why is this number what it is?": each row gainsorigin(accounts,subtotalorcomputed) and, per column, the accounts its figure was summed from with each one's value and theentity_idwhose books hold it. Open one withget-account-register(account_id, start_date, end_date, entity_id). Ask it for the statement you are explaining, not for every read: it multiplies the responsestatement_type(required) — one of the four belowincome_statement — Revenue, expenses, net income
balance_sheet — Assets, liabilities, equity (instant periods)
cash_flow_statement — Operating (indirect: net income + non-cash add-backs + working-capital deltas), investing, financing. Cash flows proper — every investing and financing line, and an operating receipt that is neither net income nor a working-capital change (a distribution from an equity-method investee) — resolve from each line's explicit flow tag when present, else from the mapped rs-gaap element's default-flow derivation arc, so untagged QB data renders too, provided the relevant accounts are mapped at the grain the arcs key on (e.g. PP&E Gross for capex). Each column measures its working-capital deltas from its own opening balances.
equity_statement — The roll-forward of the Reporting Style's capital (stockholders' equity, partners' capital or members' equity): beginning balance, net income, contributions, distributions or dividends, and other changes, to the ending balance. Every equity line counts, cash or not — an owner paying a company bill directly is a contribution. The two balance rows share the capital concept's qname and are told apart by
period_role(start,end). On a group with outside owners the noncontrolling interest rolls forward after it the same way (rs-gaap:MinorityInterest): its share of income, contributions, and distributions to the outside owners.Explicit
period_start/period_end(YYYY-MM-DD) win over everything elseperiod_type="annual"+fiscal_year=2025→ window anchored on the graph's FiscalCalendarperiod_type="quarterly"→ current calendar quarterperiod_type="instant"/ unset → current calendar month
RETURNS:
Facts with element qnames, names, classifications, and values aligned with periods — current + prior (equal duration) for every statement type. Abstract scaffolding rows and all-zero rows are filtered out; subtotals are kept and flagged is_subtotal. Capped at limit rows (default 1000 — the whole statement).
validation is the guard-rail outcome for the rendered columns (status: passed | failed | inconclusive; failures; warnings). Read it before quoting a number: a failed status means the statement does not foot or balance, and a warning about 'Other operating capital, net' means the cash flow was made to foot by a reconciling plug — say so rather than presenting the figure as clean. On the equity statement a failure means beginning balance + changes does not reach the ending balance.
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": {
"statement_type": "<statement_type>"
},
"name": "live-financial-statement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max fact rows returned (1-1000). Leave at the default for a whole statement; a lower cap cuts rows while subtotals still reflect the full set. | |
| scope | No | entity: one entity's books. combined: on the group parent, every member consolidated in full, summed per rs-gaap concept for the months each was a member, nothing eliminated. consolidated: that sum plus the consolidation entity's eliminations and noncontrolling interest — what 'the group' reads. | |
| dimension | No | Income statement only: slice by a management dimension. type alone gives a column per member plus Unallocated and Total; with member_id, one member's lines (or 'unallocated'). | |
| entity_id | No | The entity whose books this acts on, by id (get-graph-info lists them). Omit for the group parent. | |
| period_end | No | Explicit window end (YYYY-MM-DD). Overrides period_type/fiscal_year. | |
| fiscal_year | No | Fiscal year for annual window (anchored on FiscalCalendar) | |
| period_type | No | annual | quarterly | instant (ignored when explicit dates supplied) | |
| consolidated | No | The older spelling of scope: consolidated; scope wins when both are given. | |
| period_start | No | Explicit window start (YYYY-MM-DD). Overrides period_type/fiscal_year. | |
| statement_type | Yes | Type of financial statement to generate | |
| include_sources | No | Add each row's origin and, per column, the accounts its figure was summed from, each with its entity. |