Skip to main content
Glama

Multi Books

Void an invoice

invoices_void
Destructive

Void one invoice of a company and answer it whole: on FreeAgent, which writes off what it still owes, an invoice sent and past its due date alone; on Xero, by its Status VOIDED, an approved invoice no payment is set against alone, Xero refusing any other in its own words. On Zoho Books, any invoice Zoho voids, Zoho moving the payments and credits applied to it to the customer's credits and refusing any other in its own words. On QuickBooks, any invoice QuickBooks voids, sent against the invoice as just read, QuickBooks zeroing its amounts and putting Voided before its private note, and refusing any other in its own words. 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_void"
  }
}

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.8/5.0
Behavior5/5

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

Far beyond the destructiveHint=true annotation, it discloses idempotency semantics (per-program request keys so Xero/QuickBooks never take a write twice), what actually happens to the record (amounts zeroed, voided marker placed before the private note, outstanding amount written off, payments moved to customer credits), refusal reasons (refused, xero_role, read-only companies, prompt-attack screening), and the settle-by-read-back rule when no answer arrives. This is exactly the mutation context an agent needs.

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 dense block of roughly 350 words with heavy repetition: the request-key guarantee for FreeAgent/Xero is restated near the end for QuickBooks, and 'refusing any other in its own words' recurs three times. The purpose is front-loaded, but the outcome taxonomy and the per-program write-routing sentence are buried mid-paragraph.

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?

For a destructive, cross-provider write with no output schema, it covers the return shape (written / not_written with reason / unknown with duplicate detection) and the non-idempotent Zoho Books case thoroughly. Only minor gaps remain, such as whether a voided invoice can be un-voided and what post-state the invoice is left in on FreeAgent.

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% and both params are described there, so the baseline is 3; the description earns a notch more by explaining that the invoice id must match the program's own id form and that an id of another program's form yields not_written/refused. It still does not say how to discover the company id beyond the schema note.

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 clause 'Void one invoice of a company' states a specific verb and resource, and the per-program paragraphs make the scope (single invoice, per-company) unambiguous. It never names the nearest sibling (invoices_delete) or contrasts with it, so the agent must infer that voiding writes off what is owed while deleting does not.

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

Usage Guidelines3/5

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

Usage is conveyed indirectly through preconditions: it lists exactly which invoice each program will void (FreeAgent: sent and past due; Xero: approved with no payments) and what gets refused. That helps an agent predict success, but there is no explicit 'use this when / use X instead' statement and no mention of the sibling delete tool as the alternative route.

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.