Skip to main content
Glama
mcp-server-sevdesk

mcp-server-sevdesk

Check an invoice for e-invoice readiness

sevdesk_invoice_einvoice_preflight
Read-onlyIdempotent

Checks if an outgoing invoice can be issued as an e-invoice (XRechnung/ZUGFeRD) before finalization by validating company, customer, tax, and payment data, returning problems and fixes.

Instructions

Check whether an outgoing invoice (Rechnung) can go out as an e-invoice (E-Rechnung: XRechnung / ZUGFeRD) before finalizing it: your company data (USt-IdNr./Steuernummer, address, IBAN, BIC, e-mail, phone), the customer (name, address, country, e-mail, buyer reference / Leitweg-ID for public authorities, USt-IdNr. for reverse charge and intra-EU supplies), Leistungsdatum, Zahlungsziel, payment method, unit codes of the positions and the tax rule (One-Stop-Shop rules 18–20 are not supported). For a finalized invoice it also reads the XML sevDesk generated and checks it against EN 16931 rules. Read only. Returns ready plus problems and warnings, each with the field and the tool that fixes it (sevdesk_invoice_update_draft, sevdesk_contact_update). Before: sevdesk_invoice_get. After: sevdesk_invoice_finalize.

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": {
      "id": "<id>"
    },
    "name": "sevdesk_invoice_einvoice_preflight"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesInvoice id (not the invoice number), e.g. from sevdesk_invoices_list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.5.0
    • removedInput schema / properties / id / maximum
      Removed value: -9007199254740991
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, so the safety profile is covered; the description adds real value by disclosing what is validated (company master data, customer data, Leitweg-ID, Leistungsdatum, unit codes, tax rule) and that a finalized invoice triggers generation-and-validation of the sevDesk XML. It also discloses the return shape (ready plus problems and warnings, each with field and fixing tool), which matters since there is no output schema. It does not discuss permissions or performance, so it stops short of a 5.

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 content is front-loaded: the verdict and scope appear in the first clause, followed by what is checked, the return shape, and the workflow neighbors. It is a single dense paragraph with some list-like enumeration inside a sentence, which is slightly heavy but every clause carries information an agent needs to decide to call it.

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?

Given there is no output schema, the description covers the return contract (ready, problems, warnings, with field and remediation tool) and the pre/post workflow. For a one-parameter, read-only validation tool with full annotation coverage, nothing material is missing.

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?

There is a single required parameter and schema description coverage is 100%; the schema already documents that it is the invoice id rather than the invoice number and where to obtain it. The description adds no additional syntax, format, or edge-case guidance for the id, so the baseline of 3 applies.

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 description states a specific verb and resource ('Check whether an outgoing invoice can go out as an e-invoice') and scopes it to a named standard set (XRechnung / ZUGFeRD, EN 16931). It is clearly distinguishable from siblings such as sevdesk_invoice_xml (which just retrieves XML) and sevdesk_invoice_get, because it describes a readiness verdict rather than a fetch.

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 gives an explicit lifecycle position: 'Before: sevdesk_invoice_get. After: sevdesk_invoice_finalize,' which tells the agent exactly when in a workflow to invoke it. It also names a limitation (One-Stop-Shop rules 18–20 are not supported) so the agent knows a case where the check will not be authoritative.

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