Skip to main content
Glama

FaeBill E-Rechnung

Prepare invoice draft

prepare_invoice_draft
Read-onlyIdempotent

Prepare a draft for a new standard e-invoice and check it: normalises buyer, line items, dates and payment terms, calculates net/VAT/gross totals and lists missing or implausible fields. The result is a draft, not an invoice: do not present it as an invoice and do not send it. Nothing is saved and no invoice number is assigned. 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. Invoices to public authorities (XRechnung with Leitweg-ID) must be created in the FaeBill app. EUR only. The invoice date is set by FaeBill at issue (Europe/Berlin) and cannot be chosen. Choose taxCategory per line exactly as described; if the seller is a small business (§ 19 UStG), FaeBill sets the tax category itself — do not apply your own small-business logic. Pass the returned draft unchanged to finalize_invoice after the user has approved draft and totals.

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": {
      "buyer": "<buyer>",
      "items": "<items>",
      "deliveryDate": "<deliveryDate>"
    },
    "name": "prepare_invoice_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
buyerYes
itemsYes
notesNo
localeNoOutput language, default de.
skontoNo
dueDateNo
subjectNo
currencyNo
buyerTypeNo
deliveryDateYesDelivery/service date (BT-72), required.
paymentTermsNo
documentLanguageNo
documentAllowancesNo
sellerIsSmallBusinessNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces this with concrete consequences: nothing is saved, no invoice number assigned, nothing is sent, the result is a draft and must not be presented as an invoice. It adds further behavioral constraints beyond annotations — EUR only, invoice date set by FaeBill in Europe/Berlin and not choosable, and that FaeBill overrides taxCategory for § 19 small businesses. It stops short of describing what the returned draft and findings list actually look like, which is the main remaining gap.

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 core capability and the draft-not-invoice warning are front-loaded in the first two sentences, and essentially every subsequent clause carries a distinct constraint rather than filler. It is dense and run-on in places (constraints about scope, currency, date and taxCategory are packed into prose), but no sentence is expendable.

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

Completeness4/5

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

For a 14-parameter, nested-object mutation-adjacent tool with no output schema, the description covers the critical business rules an agent could get catastrophically wrong (invoice type 380 only, EUR only, fixed invoice date, small-business tax handling, no persistence, mandatory finalize handoff). It is slightly incomplete on the shape and interpretation of the returned draft and finding list, and on how to act on the listed missing/implausible fields before approval.

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 only 14% across 14 parameters, so the description must carry weight. It does add real meaning for taxCategory selection, sellerIsSmallBusiness override behaviour, currency (EUR only), and the invoice-date constraint, but it says nothing about notes, subject, locale, documentLanguage, skonto, buyerType, documentAllowances, or exemptionReason — several of which have no schema description at all.

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 gives a specific verb and resource ('Prepare a draft for a new standard e-invoice and check it') and enumerates the concrete operations: normalising buyer, line items, dates and payment terms, calculating net/VAT/gross, and listing missing or implausible fields. It is immediately distinguishable from siblings like finalize_invoice and validate_einvoice because it explicitly produces a draft rather than finalizing or validating an existing invoice.

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 names explicit exclusions with the alternative to use instead: cancellations, corrections, credit notes, down-payment and final invoices, plus public-sector XRechnung, all routed to the FaeBill app. It also states the handoff point ('Pass the returned draft unchanged to finalize_invoice after the user has approved draft and totals'), which is exactly the when-to-use-this-vs-sibling guidance an agent needs.

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