Skip to main content
Glama
Unofficial Lexware Office MCP Server

Unofficial Lexware Office MCP Server

upload_file

Uploads a receipt file (PDF, JPEG, PNG or XML) and creates a matching bookkeeping voucher in Lexware Office, so receipts can be captured as unchecked vouchers ready for completion and booking.

Instructions

Upload a receipt, which also creates a bookkeeping voucher for it.

When the voucher already exists, attach_file_to_voucher adds the file to it instead. To book without a receipt, use create_voucher.

Writes real accounting data, and the API cannot take it back: the answer carries a voucherId as well as a file id, and no call here deletes a voucher. Correcting one is a job for the web app. Confirm the organization with get_profile first. One API call, never retried.

Takes PDF, JPEG, PNG or XML, at most 5 MiB, from a path or a URL. An XML file is treated as an XRechnung. The voucher starts unchecked: update_voucher fills it in, and its finalize books it.

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": {
      "source": "<source>"
    },
    "name": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesThe file: a full path on this machine, or a URL to fetch it from. A URL works only for addresses the account owner allowed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.12.0
    • changedInput schema / properties / source / description
      Previous value: -"The file: a path on this machine, or a URL to fetch it from. A URL works only for addresses the account owner allowed."New value: +"The file: a full path on this machine, or a URL to fetch it from. A URL works only for addresses the account owner allowed."
  2. Changed2 schema fields changedv0.11.0
    • removedInput schema / properties / source / title
      Removed value: -"Source"
    • removedInput schema / title
      Removed value: -"upload_fileArguments"
  3. Addedv0.8.4

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only supply the readOnly/idempotent/destructive flags; the description goes far beyond them by stating the write is irreversible through the API (no delete call exists for vouchers), that correction happens in the web app, that the call must not be retried, and what the response carries. It also discloses accepted formats, the 5 MiB cap, XRechnung handling for XML, and the resulting `unchecked` voucher state plus the `update_voucher`/`finalize` path.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and alternatives, then the irreversibility warning, then the input constraints and lifecycle. Short paragraphs, no filler sentences, and the most consequential warning is not buried.

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?

Covers everything an agent needs for a one-parameter mutation with no output schema: when to call it, what it creates, that it cannot be undone, what to do afterwards, and the input limits. 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% and the schema already explains the path-or-URL meaning and the URL allow-list restriction, so the baseline is met. The description still adds real semantics the schema lacks: accepted file types (PDF, JPEG, PNG, XML) and the 5 MiB size limit.

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?

Opens with a specific verb and resource plus the important side effect: uploading a receipt also creates a bookkeeping voucher. It immediately distinguishes itself from `attach_file_to_voucher` and `create_voucher`, so an agent can route correctly without opening any 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?

Gives explicit routing rules: use `attach_file_to_voucher` when the voucher already exists, use `create_voucher` to book without a receipt, and confirm the organization with `get_profile` first. Both alternatives and their selecting conditions are named.

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