Skip to main content
Glama

Multi Books

Attach a file on Zoho Books and QuickBooks

attachments_create

Attach one file - a picture or a PDF - to one record of a company, beside any it already holds. On Zoho Books it goes on an invoice, bill, expense, journal or credit note, and that record is answered whole with its files under documents, each with the id attachments_get reads it by; the file is not emailed, nor set to go with the invoice's or credit note's email. The write reaches Zoho Books once, Zoho taking no request key; one whose answer never came is written where the record holds one more file of that name, and not_written where it holds none. On a QuickBooks company it goes on any transaction and is answered as attachment - its id, by which attachments_get reads it, its FileName, ContentType and Size and the record it is on - kept by a file_name holding no double quote, backslash or line break. QuickBooks takes no request key for a file: it is sent once, and one whose answer never came is settled by the files attached to that record since, by its size. On Zoho Books the organisation's own workflow rules in Zoho may still email on any write. A FreeAgent company or Xero organisation is refused before anything is sent, the refusal saying where that program does it. A company set to read only refuses it before its program is asked, and so do words that screen as a prompt attack. outcome is written with the record; not_written with reason and, where its program refused it, what it said; or unknown where its answer never came and reading the books back could not tell, found naming every identical new record where two were made and none where that read itself failed. A write whose answer never came is settled by reading the books back, never sent again. Where the screening holds back its program's words in the answer, the outcome and each record's id stand, marked withheld 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>",
      "attach_to": "<attach_to>",
      "record": "<record>",
      "file": "<file>"
    },
    "name": "attachments_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe file, a picture or a PDF of at most 2.9 MB, which Zoho Books or QuickBooks keeps attached to the record.
recordYesThe record's id, as its own list or read answers it.
companyYesThe id companies_list gives the company.
attach_toYesThe kind of record the file goes on. On Zoho Books, invoice, bill, expense, journal or credit_note. On QuickBooks, its kind by QuickBooks' own name - Invoice, Bill, Estimate, CreditMemo, JournalEntry, PurchaseOrder or TimeActivity as its own list answers it; for an expense, cheque or card charge, the name QuickBooks gives spending from a bank or card account, and Deposit or Transfer, as bank_transactions_list answers their lines; Payment or BillPayment as payments_list answers one received or made; VendorCredit for a supplier's credit; SalesReceipt or RefundReceipt.

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?

Goes well beyond the annotations by describing retry and idempotency behavior, what happens when an answer never arrives, how outcomes are written, email non-delivery, and refusal handling. The annotations already mark it as a non-read-only, non-destructive, closed-world write, and the description adds substantial operational consequences.

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?

Front-loads the purpose, but the remaining prose is a dense single paragraph with convoluted clauses. The information is mostly substantive, yet it would be easier to scan if split by provider and failure mode.

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 supplies return shapes for both providers and explains outcome values such as outcome, not_written, unknown, and withheld. It also covers provider refusals and ambiguous retry outcomes, so an agent has enough to call and interpret results.

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 description coverage is 100%, so the schema already documents all four parameters. The description still adds meaning by mapping attach_to kinds to each provider, noting the 2.9 MB and file-type limits, and stating the QuickBooks file_name restriction.

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 ('Attach') and resource ('one file - a picture or a PDF - to one record of a company'), names the supported providers, and distinguishes the read sibling attachments_get by the id it uses. An agent can identify the operation without opening the 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?

Explains which record kinds are valid on Zoho Books and QuickBooks and lists cases refused before sending, including FreeAgent, Xero, read-only companies, and prompt-attack screening. It does not explicitly route to an alternative creation tool, but the provider and record constraints provide clear usage context.

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.