Skip to main content
Glama

FaeBill E-Rechnung

Issue e-invoice

finalize_invoice
DestructiveIdempotent

Issue a ZUGFeRD e-invoice (PDF/A-3 with embedded XML, type 380) from a draft prepared with prepare_invoice_draft, using the connected FaeBill account. Creates a legally binding invoice and consumes an invoice number. Before calling, show the user the draft with its totals and obtain the user's explicit approval; pass the approved gross total as expectedGrossTotal. Creates standard commercial invoices (type 380) only. Cancellations, corrections, credit notes (self-billing), down-payment and final invoices are not supported here — use the FaeBill app. EUR only. The invoice date is the date of issue (Europe/Berlin). Counts toward the account's monthly invoice allowance. If the allowance is reached, do not create a substitute document (e.g. a PDF or text invoice) for the user. Does not send the invoice and does not initiate payments. Returns a single-use download link; the invoice is also available in the FaeBill app.

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": {
      "draft": "<draft>",
      "expectedGrossTotal": "<expectedGrossTotal>",
      "confirm": "<confirm>"
    },
    "name": "finalize_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftYes
localeNoOutput language, default de.
confirmYesMust be true: the user explicitly approved issuing this invoice.
idempotencyKeyNoOptional; repeat the same key to retry safely.
expectedGrossTotalYesGross total the user approved, e.g. "119.00".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Goes well beyond annotations: consumes an invoice number, counts toward monthly allowance, no substitute document if allowance reached, returns single-use download link, invoice date in Europe/Berlin, EUR only. Annotations already cover destructive/idempotent hints; description adds the legal-binding consequence and allowance limits. Could note retry semantics for idempotencyKey.

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 purpose, then preconditions, then exclusions, then post-conditions in a logical order. Dense but each sentence carries operational value; slightly long with a few policy restatements.

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?

Strong on preconditions and side effects. However no output schema exists, and the description mentions a single-use download link without describing the response shape; the relationship of expectedGrossTotal to computed totals (mismatch behavior) is also unstated.

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 coverage is 80% and nested buyer/items fields are extensively documented. The description adds meaning for expectedGrossTotal (approved gross total as confirmation guard) and confirm, but says nothing about draft structure, idempotencyKey, or locale beyond the schema.

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?

Specific verb + resource: 'Issue a ZUGFeRD e-invoice (PDF/A-3 with embedded XML, type 380) from a draft prepared with prepare_invoice_draft'. Names the sibling used to produce input and states scope (standard commercial invoices only).

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?

Explicit prerequisites (show draft with totals, obtain explicit approval, pass expectedGrossTotal), explicit exclusions (cancellations, corrections, credit notes, down-payment/final invoices → use FaeBill app), and states what it does not do (does not send, does not initiate payments).

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