Skip to main content
Glama

Multi Books

Read sales by item or product on Zoho Books and QuickBooks

reports_sales_by_item
Read-only

Read a company's sales by item for a period. On Zoho Books it is Zoho's own report, never computed: each item by its id and name, with its unit where Zoho names one, the quantity sold, the amount and Zoho's average_price, in Zoho's own order, in the organisation's base currency, which companies_list names. On QuickBooks it is QuickBooks' own sales by product or service, from the start of the financial year where from is omitted, each product or service by the id items_list gives it, 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. A FreeAgent company or Xero organisation answers none, saying under none what to read there instead. For one company or several and at most four on Zoho Books or QuickBooks at once, each read live from its program. 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_sales_by_item"
  }
}

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 accounting year where omitted.
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.5/5.0
Behavior5/5

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

Annotations only declare a safe read; the description goes far beyond that, disclosing per-provider defaults (QuickBooks falls back to the start of the financial year), output ordering, base-currency behavior, a four-company batch cap, and that each company is read live. It also documents two failure modes and their exact placement: per-company errors under 'unread' with a reason, and a Zoho reports-permission refusal surfaced as 'zoho_reports' with a re-authentication note.

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?

Purpose is front-loaded in the first clause, which is good, but the body is one dense semicolon-chained paragraph that is hard to parse and repeats 'never computed' twice. The provider-specific return shapes could be bulleted or shortened without losing information.

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?

There is no output schema, so the description carries the full burden of describing return values — and it does, giving the Zoho column set and the QuickBooks report/from/to/currency/columns/rows/cells/id/section structure. Combined with the error and unsupported-provider handling, an agent has everything needed to call and interpret this tool.

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; the description earns above that by adding the four-company ceiling on 'companies', which the schema does not constrain, and by reinforcing the omitted-date defaults per provider. It does not add date-format or uuid syntax beyond the schema, which is already thorough.

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?

States a specific verb and resource ('Read a company's sales by item for a period') and then splits the behavior by provider, so an agent knows exactly what this returns on Zoho Books versus QuickBooks versus FreeAgent/Xero. It is clearly distinguishable from the other report siblings, which cover different statements and ledgers.

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

Usage Guidelines4/5

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

Gives clear conditions: works for one company or several, at most four on Zoho Books or QuickBooks, read live; FreeAgent and Xero 'answer none, saying under none what to read there instead.' It also points to companies_list for ids and items_list for QuickBooks item ids. It stops short of naming a concrete alternative report tool for the unsupported-provider case, leaving that to the response body.

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.