Skip to main content
Glama

Multi Books

Delete an invoice

invoices_delete
Destructive

Delete one invoice of a company. On FreeAgent and Xero only a draft is deleted: an invoice that is not one - on Xero, one awaiting approval too - is refused with nothing deleted. On Zoho Books any invoice Zoho lets go is deleted, Zoho refusing one a payment or credit note is applied to in its own words. On QuickBooks, which keeps no draft, any invoice QuickBooks lets go is deleted, sent against the invoice as just read, QuickBooks refusing one a payment is linked to in its own words. Deleted, it is written: on FreeAgent and Zoho Books with no record, the invoice being gone; on Xero, where it is deleted by its Status DELETED, with the invoice as it reads deleted. On QuickBooks with its id and status Deleted. One whose answer never came is written where the invoice reads gone, with no record, or deleted, with the invoice as it reads, and not_written where it does not. 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.

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_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
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

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description goes well beyond that: per-provider deletion semantics, write records written on success, not_written with refusal reasons (refused, xero_role), idempotency via provider request keys, read-back settlement for unanswered writes, and read-only company refusals. The one gap is that it never states prerequisites in a usable form, such as the specific scopes or permissions required, burying the role-based refusal in dense prose.

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?

Roughly 350 words for a two-parameter delete, written in compressed, clause-stacked prose ('Deleted, it is written: ...') that forces re-reading. Key facts are buried mid-paragraph and statements are effectively repeated, notably the Xero request-key idempotency claim which is restated almost verbatim for QuickBooks at the end.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 does the work of documenting returns: outcome, per-record ids, not_written with reason and upstream message, and unknown for unanswerable writes, plus withheld screening and back-read settlement. It is thorough for a destructive cross-provider tool, lacking only a clear statement of the delete-vs-void decision that would make the coverage decision-complete rather than merely exhaustive.

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% and both parameters carry their own descriptions pointing at companies_list and invoices_list, so the schema does the heavy lifting. The description adds only marginal meaning — that an id 'of another program's form' is refused as not_written — which is useful but narrow, making the baseline 3 correct.

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?

The opening sentence gives a specific verb and resource — 'Delete one invoice of a company' — so an agent immediately knows the operation and scope. However, it never distinguishes this from the obvious sibling invoice_void, so the caller gets no help deciding between deleting and voiding an invoice, which is the single most consequential choice for this operation.

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?

The description provides unusually strong precondition guidance: on FreeAgent and Xero only a draft is deleted and a non-draft (or one awaiting approval on Xero) is refused with nothing deleted, while Zoho Books and QuickBooks delete anything their platform permits. What is missing is routing to alternatives — there is no mention of invoices_void or any guidance about when deletion is the wrong tool to reach for.

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.