Skip to main content
Glama
amin-ale

QuickBooks Online MCP Server

by amin-ale

Delete invoice

delete_invoice
Destructive

Permanently delete an incorrectly created invoice. Use only for invoices raised in error; for customer-visible invoices, void or issue a credit memo instead.

Instructions

Delete an invoice permanently from the company file. Use it only for an invoice raised in error: this server cannot undo it, and voiding or issuing a credit memo is usually the correct accounting action for an invoice the customer has already seen. Write operation and not idempotent: it needs the SyncToken from a fresh get_invoice, and a repeat call for the same Id fails because the invoice no longer exists. Payments linked to it lose that link.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
invoice_idYesQuickBooks Invoice Id, as returned by search_invoices, list_invoices, or create_invoice. This is the internal Id, not the DocNumber printed on the invoice.
sync_tokenYesSyncToken from a fresh get_invoice call for this Id. QuickBooks rejects a stale token with error 5010, so re-read the invoice instead of reusing an older token.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
errorNo
invoiceNo
Install Server

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark this as destructive and non-idempotent, but the description adds important behavioral context beyond those flags: 'this server cannot undo it', payments linked to the invoice lose that link, and stale SyncTokens will cause failures. This fully discloses the side effects of calling the tool.

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

Conciseness4/5

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

The description is dense but every sentence adds useful operational context: permanent deletion, when to use versus alternatives, SyncToken and idempotency requirements, and linked-payment side effects. It is slightly redundant with the annotations and schema (e.g., 'not idempotent' and the freshness requirement), but it remains efficient and well-structured.

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 destructive, non-idempotent mutation tool, the description covers the critical context an agent needs: irreversibility, the correct use case, the prerequisite for a fresh SyncToken, failure mode on repeat calls, and the effect on linked payments. Combined with the output schema and detailed parameter descriptions, nothing essential is missing.

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?

The input schema already covers both parameters thoroughly, including that invoice_id is the internal Id not DocNumber, and that sync_token must come from a fresh get_invoice call and will fail with error 5010 if stale. The description reinforces the SyncToken requirement but does not add much semantic meaning beyond what the schema provides, so a baseline score of 3 is appropriate.

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?

The description opens with a clear verb and resource: 'Delete an invoice permanently from the company file.' It distinguishes this action from voiding or issuing a credit memo, which are the correct alternatives for invoices the customer has seen, so an agent can immediately understand what this tool does and how it differs from other accounting actions.

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

Usage Guidelines5/5

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

The description explicitly states when to use the tool ('only for an invoice raised in error'), when not to use it (customer-visible invoices should be voided or credited), and the prerequisite of a fresh SyncToken from get_invoice. It also warns that a repeat call fails because the invoice no longer exists, which gives the agent clear operational guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amin-ale/mcp-quickbooks'

If you have feedback or need assistance with the MCP directory API, please join our Discord server