Read the profit and loss
reports_profit_and_lossRead a company's profit and loss for a period: FreeAgent's own income, expenses, operating profit, what is taken from it and the retained profit, with accounts beside them - each profit and loss account's total over the same period, a debit positive and a credit negative, so income reads negative. FreeAgent's report carries no account's figure, so accounts is computed from its trial balance over that period and marked computed. A period runs at most twelve months or within one accounting year, and FreeAgent refuses a longer one. On Xero it is Xero's own report: its rows, each with its cells' values in column order and its account once as AccountID; a person whose Xero role does not reach reports stands under unread as xero_role. On Zoho Books it is Zoho's own report, never computed: its rows as Zoho lays them out, each section, group and account by its name with its figure - total, or on a trial balance net_debit_total or net_credit_total, each positive - an account by its account_id, and the rows within each under rows; with the period Zoho read, its basis, cash or accrual, and under compared the days of each earlier period Zoho set beside it, oldest first, whose totals each row carries under previous in that order. On QuickBooks it is QuickBooks' own profit and loss, from the start of the financial year where from is omitted, never computed: report, from, to, currency, columns - their titles - and rows in QuickBooks' order, each with cells - its values in column order - and id, the QuickBooks record its first cell names, where it names one; a section carries header, its own rows and summary. For one company or several and at most four at once, read live from FreeAgent, Xero, QuickBooks or Zoho Books. A company that could not be read stands under unread with why, as bank_accounts_list answers it. A Zoho Books organisation whose sign-in Zoho refuses its reports stands under unread as zoho_reports, its note saying to add Zoho Books again signed in to Zoho as the same account.
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": "reports_profit_and_loss"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | The last day of the period, as 2026-10-31; today where omitted. | |
| from | No | The first day of the period, as 2026-04-01; the start of the current accounting year where omitted, so a period in an earlier year names both days. | |
| compare | No | On Xero, earlier periods set beside this one as columns of their own - periods 1 a year apart is the year before. On Zoho Books, the earlier periods Zoho sets beside it, each a month, quarter or year before, its days under compared. On QuickBooks, each earlier one a report of its own, under earlierPeriods - earlierDays for a balance sheet. A FreeAgent company answers its one period, so an earlier one is a call of its own. | |
| tracking | No | On Xero, the profit and loss of this one tracking option alone; an organisation not holding it stands under unread as refused. A FreeAgent company answers none, saying under none: FreeAgent's API gives no profit and loss by tracking group, so none is read here; the same call without tracking reads the company's whole profit and loss. A Zoho Books company answers none, saying under none: Zoho Books' profit and loss by reporting tag is not read here; the same call without tracking reads the company's whole profit and loss. A QuickBooks company answers none, saying why under none. | |
| companies | No | The ids companies_list gives the companies to read; every company where omitted. |