Skip to main content
Glama

Multi Books

Send an invoice

invoices_send
Destructive

Send one invoice of a company by email and answer it whole as it reads after. A FreeAgent company's goes from FreeAgent with the email given - a draft, which then reads open, or one already sent, sent again; one set to be collected by GoCardless Direct Debit is refused with nothing sent, since sending it would start collecting the money. A Xero organisation's goes by Xero's own email to the invoice's contact, from the person who connected it and by the organisation's own template, so no email is given; only an approved invoice is sent. Xero caps the invoice emails an organisation sends in a day by how Xero holds it - its demo company sends none, a trial organisation few - and a send past the cap, or one Xero refuses for an organisation it has restricted, is not_written with what Xero said: the cap is raised in Xero itself, and a restriction lifts with time or through Xero Support. A Xero email whose answer never came is unknown, answered with the invoice as read before it. A Zoho Books organisation's goes by Zoho's own email, its subject and words as Zoho drafts them, to the address given as to, else to the customer's contacts Zoho picks; one already sent is sent again, as a reminder. A QuickBooks company's goes by QuickBooks' own email to the address given as to, else to the address the invoice holds, else to its customer's own - QuickBooks puts none on an invoice made here - and an address given becomes the invoice's own, so a later send without one goes there; one already sent is sent again, as a reminder. An email given for a Xero, Zoho Books or QuickBooks invoice, none for a FreeAgent one, an address given as to for a FreeAgent or Xero one, or an invoice not approved on Xero, is refused with nothing sent. On Zoho Books the organisation's own workflow rules in Zoho may still email on any write. Each call is one write, sent to the company's program once - to FreeAgent, or to Xero under a request key of its own, so Xero never takes it twice. A Zoho Books organisation's write goes to Zoho Books, which takes no request key. One given in another program's names, or naming an id of another program's form, is not_written with reason refused, nothing sent; one Xero keeps from the person's Xero role, with reason xero_role. 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. A QuickBooks company's write goes to QuickBooks under a request key of its own, so QuickBooks never takes it twice. A FreeAgent or Zoho Books send whose answer never came is told by the record as read just before it: a draft is written once it reads as a draft no longer and not_written while it still does; one already sent is unknown, answered with the record as read, since sending it again leaves no mark in the books. QuickBooks stamps each email's delivery on the record, so a QuickBooks send whose answer never came is written where that stamp moved and not_written where it did not.

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>",
      "invoice": "<invoice>"
    },
    "name": "invoices_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoOn Zoho Books or QuickBooks, the address it is emailed to. Where omitted, on Zoho Books the customer's contacts Zoho picks. Where omitted on QuickBooks, the address the record holds, else the customer's. On QuickBooks an address given becomes the record's own, so a later send without one goes there.
emailNoThe email FreeAgent sends it with; none on Xero, Zoho Books or QuickBooks, where the program's own email sends it.
companyYesThe id companies_list gives the company.
invoiceYesThe invoice's id, as invoices_list answers it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag a destructive, open-world write, and the description adds layers they cannot carry: per-program idempotency (Xero/QuickBooks request keys, ZohoBooks none), readback reconciliation on lost answers, mail-cap refusals with remediation paths, and prompt-injection screening. This is far beyond the annotation baseline.

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

Conciseness2/5

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

One sprawling, run-on block dense with telegraphic clauses; the QuickBooks request key and Xero's "never takes it twice" are each stated twice. Only the opening sentence is front-loaded — the remainder repeats outcome and readback logic across overlapping paragraphs.

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 four-provider, non-idempotent-in-places write with a nested email object and no output schema, the description covers outcome values (written/not_written/unknown), refusal reasons, retry safety and reconciliation fully. An agent can call it and interpret every return shape without further context.

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 prose adds real meaning: email applies only to FreeAgent while to applies to Zoho Books/QuickBooks (and is refused for FreeAgent/Xero), and a QuickBooks to becomes the record's own address for later sends. The dense style makes extracting these rules costly, but the semantics are genuinely additive.

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

Purpose4/5

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

"Send one invoice of a company by email" gives a specific verb, resource and cardinality (one invoice). The per-provider narrative makes the operation unmistakable, though the description never names a sibling (invoices_void, invoices_update, invoices_get) to distinguish against, leaving routing to inference.

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?

Provides unusually rich when/when-not rules: GoCardless Direct Debit invoices are refused because sending would start collection, Xero only sends approved invoices, and supplying an email for Xero/Zoho/QuickBooks is refused. It never points at an alternative tool for the cases it declines, so the guidance is conditional rather than comparative.

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.