Skip to main content
Glama

Delete invoice

delete_invoice
DestructiveIdempotent

Permanently deletes one invoice together with its line items and any PDF uploaded for it. Use it to remove a draft the user no longer wants, or an imported invoice that nothing depends on. It cannot be undone. Only drafts and unused imports can be deleted: an imported invoice that has an email, a reminder, a payment or a credit note is rejected, and so is any invoice finalized here, which stays on record and is cancelled with a credit note. The credit spent on an import is not refunded. It does not email anyone.

Input Schema

NameRequiredDescriptionDefault
idYesInvoice ID to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond destructiveHint=true: states irreversibility, the cascade to line items and PDFs, the exact rejection conditions (linked email, reminder, payment, credit note; finalized invoices are cancelled via credit note instead), and that the import credit is not refunded. Adds that no email is sent, closing a common side-effect question.

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?

Front-loads the action and cascade, then consequences, then eligibility rules — every sentence carries distinct information. It is dense but slightly long; the 'does not email anyone' line is a useful but minor addendum.

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 single-parameter destructive tool with no output schema, an agent has everything needed: what is destroyed, what blocks deletion, what happens to finalized invoices, and that the operation is irreversible.

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?

Only one parameter, 'id', already fully documented in the schema at 100% coverage. The description adds no format, sourcing, or lookup guidance for the ID, so it neither helps nor harms beyond the schema baseline.

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 and resource (permanently deletes one invoice) plus the cascade scope (line items, uploaded PDFs). This is immediately distinguishable from sibling mutators like update_invoice or delete_customer.

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?

Gives explicit when-to-use cases (a draft the user no longer wants, an unused import) and precise preconditions for rejection. It does not name sibling alternatives such as update_invoice or a cancellation path, but the usage conditions are unambiguous.

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.

Resources