Skip to main content
Glama
Fakturia API MCP

Fakturia API MCP

by edjufy

cancel_invoice

Cancel an invoice and create a credit note in Fakturia, optionally emailing the customer and using the original invoice address.

Instructions

Cancel an invoice in Fakturia. This creates a cancellation (credit note) for the invoice. Optionally control whether a cancellation email is sent to the customer and whether to use the invoice address for the cancellation document.

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": {
      "invoiceNumber": "<invoiceNumber>"
    },
    "name": "cancel_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceNumberYesThe unique invoice number identifying the invoice to cancel.
useInvoiceAddressNoWhen true, uses the original invoice address for the cancellation document instead of the current customer address.
sendMailToCustomerNoWhen true, sends a cancellation notification email to the customer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does well on the most important point — the operation creates a credit note rather than deleting anything — and it discloses the two side effects (email notification, address source). It says nothing about reversibility, required permissions, failure conditions, or what the call returns.

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?

Three tight sentences, front-loaded with the action and its effect, then the optional controls. The final sentence largely paraphrases schema fields, which is the only real waste.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the description covers the action, its document-creating effect, and both optional flags. It stops short of prerequisites, irreversibility, error behavior, and the shape of the result, leaving gaps an agent would have to discover empirically.

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 description coverage is 100%, so all three parameters are already documented in the schema. The description's restatement ('whether a cancellation email is sent', 'whether to use the invoice address') adds no syntax or behavioral nuance beyond that, making the baseline 3 appropriate.

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 description names a specific verb and resource ('Cancel an invoice in Fakturia') and immediately clarifies the mechanism: a cancellation (credit note) document is created rather than the invoice being deleted. It does not explicitly contrast with siblings like reopen_invoice or cancel_contract, which keeps it short of a 5.

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 implied by the verb — an agent knows this is the tool for cancelling an invoice — but the description states no preconditions (invoice state, whether paid invoices can be cancelled, whether a cancellation already exists) and names no alternatives for related outcomes.

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

Deploy Server

Other Tools