Skip to main content
Glama

voidInvoice

Destructive

Void an issued invoice, cancelling it permanently. A voided invoice stays in the history but is no longer owed, and it cannot be restored. Returns the invoice read after the void. Only an issued invoice with no payment and no payment in progress can be voided: a draft is deleted with deleteInvoice, and a paid invoice is refunded with createCreditNote. Get invoiceId from getInvoices. Never invent UUIDs; only use values from prior tool responses.

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": {
      "invoiceId": "<invoiceId>"
    },
    "name": "voidInvoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceIdYesThe id of the invoice.

Output Schema

NameRequiredDescriptionDefault
invoiceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, and the description adds substantive context beyond that: the effect is permanent and unrestorable, the invoice remains in history but is no longer owed, and the call returns the invoice as read after the void. The precondition on payment state is a behavioral constraint the annotations could not convey.

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-loaded with the action and its permanence, then the eligibility rule, then the ID-sourcing rule — a logical order with no filler sentences. It is on the longer side for a one-parameter tool, but every sentence carries distinct operational information.

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, single-parameter mutation with an output schema, the description covers what an agent needs: irreversibility, state preconditions, alternative tools for the adjacent cases, and return behavior. Nothing material is missing.

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 description adds real value by telling the agent where the invoiceId must come from (getInvoices) and warning against inventing UUIDs. It does not describe the UUID format details, but those are already in the schema pattern and format fields.

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 first sentence states a specific verb and resource ('Void an issued invoice') and immediately constrains it to the issued state. Later sentences explicitly separate this tool from deleteInvoice (drafts) and createCreditNote (paid invoices), so an agent can distinguish it from its closest siblings without opening a schema.

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?

It states the exact eligibility condition ('only an issued invoice with no payment and no payment in progress') and names the correct alternatives with the condition that selects each: drafts go to deleteInvoice, paid invoices to createCreditNote. It also gives a sourcing rule for the ID ('get invoiceId from getInvoices'), leaving nothing to inference.

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