get_financial_statements
Computed balance sheet + P&L for a fiscal year, from the journal (CompanyMember).
Aggregates every posted GL journal line whose posting date falls in the fiscal
year's window, classifies each account against the chart of accounts, and reports
problems (unbalanced trial balance, unclassified accounts, year-not-opened, mixed
currency). Read-only and distinct from the uploaded balance-sheet snapshots
(GET .../balance-sheets): nothing here reads a snapshot. fiscal_year optional
→ the latest FY with journal data. month (YYYY-MM, inside the FY — 422
otherwise) narrows the statement to one month: the balance sheet stays cumulative
(as of month end, YTD equity fold) while the P&L + cash flow cover that month's
flows. Explicit non-member company_id → 403.
The cut: posting_date inside the fiscal year's own window (fiscal_year_cut;
period_start..period_end is what was aggregated, ZET-166). /gl/reports/* cuts
by the line's stamped fiscal_year_id, so the two can differ on a line dated outside
the year it is stamped to.
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": {
"company_id": "<company_id>"
},
"name": "get_financial_statements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| month | No | ||
| company_id | Yes | ||
| with_prior | No | ||
| fiscal_year | No |