Skip to main content
Glama

Multi Books

List expenses

expenses_list
Read-only

List a company's expenses, newest first - each with its claimant, category, day, value and the receipt it carries, which attachments_get reads - between two days, or all of them, 25 to a page, for one company or several and at most four at once, read live from FreeAgent or Zoho Books; more marks a company holding further pages. An expense whose words screen as a prompt attack keeps its place by its id, marked withheld; a company that could not be read stands under unread with why, as bank_accounts_list answers it. A Xero organisation lists none, saying under none: Xero records spending as a bill or a spend money entry, never as an expense: bills_list and bank_transactions_list list them. A Zoho Books expense carries Zoho's own fields, its expense_id answered as id. Its receipt is named by expense_receipt_name alone, with no id attachments_get takes: the person opens it in Zoho Books. A QuickBooks company lists none, saying under none: QuickBooks records spending as an expense from a bank or card account, or a bill: bank_transactions_list and bills_list list them.

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": "expenses_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoThe last day, as 2026-11-30; the latest where omitted.
fromNoThe first day, as 2026-11-01; the earliest where omitted.
pageNoWhich page of each company's list; 1 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.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered; the description adds genuinely new behavior: newest-first ordering, 25-per-page paging, a "more" marker when a company has further pages, and withheld prompt-attack-screened rows that retain their id. It also discloses partial-failure semantics ("unread" with a reason) and provider-specific shape differences for Zoho. These are useful but scattered and don't describe the envelope the caller receives beyond the none/unread markers.

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

Conciseness4/5

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

Front-loaded with purpose and no filler sentences; every clause carries operational content. However, the opening sentence is an extremely long clause chain ("...which attachments_get reads - between two days, or all of them, 25 to a page...") and provider-specific behavior is interleaved rather than grouped, which costs parseability for a dense definition.

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?

With no output schema, the description carries the return-shape burden and does so: item fields, ordering, page size, the "more" pagination marker, withheld rows, and per-company "unread" with reasons. Provider edge cases (Xero, QuickBooks, Zoho) and the receipt-access divergence are all covered, leaving nothing an agent needs in order to call or interpret results.

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

Parameters3/5

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

Schema coverage is 100%, so from/to/page/companies are already documented, establishing a baseline of 3. The description does add one constraint absent from the schema — "at most four at once" for the companies array, which the schema does not cap with maxItems — and ties `page` to the "more" marker. That is real added meaning, but it is the only substantive addition beyond what the schema already carries.

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+resource ("List a company's expenses") and immediately characterizes the result set: newest-first ordering, per-item fields (claimant, category, day, value, receipt), date window, and page size. It also draws hard boundaries against bills_list and bank_transactions_list for the providers where expenses do not exist, so an agent can separate it from siblings without opening a schema.

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

Usage Guidelines5/5

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

Explicit when-to-use routing is given per provider: Xero organisations yield none and the agent is told to use bills_list or bank_transactions_list; QuickBooks companies likewise. It also names attachments_get for reading the receipt, and carves out the Zoho case where expense_receipt_name replaces it. Both the alternative and the selecting condition are stated.

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.