Skip to main content
Glama

Multi Books

Read the profit and loss

reports_profit_and_loss
Read-only

Read 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

NameRequiredDescriptionDefault
toNoThe last day of the period, as 2026-10-31; today where omitted.
fromNoThe 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.
compareNoOn 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.
trackingNoOn 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.
companiesNoThe ids companies_list gives the companies to read; every company where omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already mark this read-only and closed-world, and the description piles on genuinely new behavior: FreeAgent refusing periods over a year, accounts being 'computed' and marked as such, Xero's account once as AccountID, Zoho never computed with cash/accrual basis, QuickBooks defaulting from the financial-year start. Failure modes are named with their unread codes (xero_role, zoho_reports, refused) and tied to bank_accounts_list's shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the body is a chain of comma-spliced run-ons that force re-reading, and output-shape detail for four platforms is stacked without headings or bullets. Given four platform variants the length is defensible, yet the structure actively impedes scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter, four-platform, nested-payload tool with no output schema, the description covers return shapes per provider, error states, period limits, and tracking/compare semantics. An agent has enough to call it correctly and anticipate what comes back.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema only hints at: tracking yields a whole-company read refused on FreeAgent and Zoho with an explicit 'none' marker, compare maps to distinct output shapes per platform (columns on Xero, earlierPeriods on QuickBooks, compared days on Zoho), and from defaults differ by platform. That is more than restatement.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource — 'Read a company's profit and loss for a period' — and immediately enumerates the components returned (income, expenses, operating profit, retained profit). The per-platform breakdown (FreeAgent, Xero, Zoho Books, QuickBooks) further distinguishes it from siblings like reports_balance_sheet or reports_trial_balance.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real usage constraints: periods capped at twelve months or one accounting year, at most four companies at once, and per-platform behavior for compare and tracking. But it never routes the agent among siblings (e.g. when to pick this over reports_trial_balance or reports_balance_sheet); the differentiation is left implicit in the resource name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.