Skip to main content
Glama

Multi Books

Read an attachment

attachments_get
Read-only

Read one file attached in a company's books - a bill's or an expense's receipt, or one a bank line's explanation names; on Xero or Zoho Books one attached to an invoice or a bill - by its id, live from FreeAgent, Xero, QuickBooks or Zoho Books: what the file says as text where its words could be read - its first 20,000 characters, omittedCharacters counting the rest - outcome naming why where not. On Zoho Books it can also be one attached to a journal or a credit note. On QuickBooks it is one an invoice or bill names under attachments, or one attachments_create attached. A FreeAgent file carries content_src, the file itself, served to a plain GET carrying no credential until expires_at; a Xero or QuickBooks file carries none. A Zoho Books file carries its file_name and content_type. A company that could not be read, or whose file did not arrive, stands under unread with why.

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": "<company>",
      "attachment": "<attachment>"
    },
    "name": "attachments_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
companyYesThe id companies_list gives the company.
attachmentYesThe attachment's id, as bills_get, invoices_get, expenses_list or bank_transactions_list answers it - on Xero the whole id an entry under attachments carries. On Zoho Books and QuickBooks, also as attachments_create answers it. On Zoho Books, the id an entry under documents carries in invoices_get, bills_get, expenses_create or attachments_create.

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 only declare a safe read; the description goes well beyond them, disclosing text truncation at 20,000 characters with omittedCharacters tallying the remainder, provider-specific response shapes (FreeAgent content_src, Zoho file_name/content_type, Xero/QuickBooks none), and an 'unread' bucket for companies or files that failed. The note that FreeAgent's content_src is served to a plain unauthenticated GET until expires_at is genuinely security-relevant context an agent could not infer.

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?

Information-dense but structurally poor: one long clause-chained sentence with semicolons and dash-asides that must be re-read to parse, e.g. 'what the file says as text where its words could be read - its first 20,000 characters, omittedCharacters counting the rest - outcome naming why where not'. Every fact earns its place, but the packing hurts scannability.

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 and no annotation detail, the description carries the full burden and does: it describes return content (text, omittedCharacters), per-provider fields (content_src with expires_at, file_name, content_type), and the failure surface (unread with why). Nothing an agent needs to call this correctly or interpret the result is absent.

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 the schema already documents both parameters, including the composite id pattern and which sibling returns which format. The description restates the same cross-provider id provenance rather than adding new syntax or format detail, so the baseline 3 applies.

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 one file attached in a company's books') plus the exact artifact classes (bill/expense receipt, bank line explanation, invoice/bill attachment) and the four providers it draws from. It also names the counterpart tool attachments_create, so an agent can separate reading from writing 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 Guidelines4/5

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

Gives concrete routing context by telling the agent where the id comes from ('as bills_get, invoices_get, expenses_list or bank_transactions_list answers it', plus Zoho's documents entries and attachments_create). What's missing is an explicit statement of when not to call it, e.g. that it returns nothing usable for unsupported providers, though the 'unread with why' clause partly covers that.

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.