Skip to main content
Glama
Unofficial Lexware Office MCP Server

Unofficial Lexware Office MCP Server

download_file

Read-only

Save a stored Lexware Office file, such as an uploaded receipt, to a local path or URI for later reading. Use it for attachments, not rendered sales documents.

Instructions

Save a stored file, such as an uploaded receipt. One API call.

The bytes stay out of the answer: path is for a client on this machine, uri for read_download or a resource read.

For a link a person can click, call get_deeplink with the voucher that lists this file. The web app has no page for the file itself.

Use download_document for a sales document, which is rendered rather than stored.

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": {
      "file_id": "<file_id>"
    },
    "name": "download_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesThe file's Lexware id. A bookkeeping voucher lists the ids of its attachments in its `files` field.
file_formatNoWhich representation to fetch. 'pdf' is what almost everything has. 'xml' only exists for an XRechnung, and asking for it otherwise is a not-found.pdf

Output Schema

NameRequiredDescriptionDefault
uriYesResource URI for the same file. Read it to get the bytes, wherever the server runs.
pathYesWhere the file was written on the server.
sizeYesSize in bytes.
mimeTypeYesThe file's content type.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.11.0
    • removedInput schema / properties / file_format / title
      Removed value: -"File Format"
    • removedInput schema / properties / file_id / title
      Removed value: -"File Id"
    • removedInput schema / title
      Removed value: -"download_fileArguments"
    • changedOutput schema / description
      Previous value: -"What a download reports back.\n\nDeclared as a model rather than a bare dict so the schema the client sees\nsays what the fields are. `path` and `uri` name the same file: the path is\nusable when the client shares a machine with the server, the URI when it\ndoes not."New value: +"What a download reports back."
    • removedOutput schema / properties / mimeType / title
      Removed value: -"Mimetype"
    • removedOutput schema / properties / path / title
      Removed value: -"Path"
    • removedOutput schema / properties / size / title
      Removed value: -"Size"
    • removedOutput schema / properties / uri / title
      Removed value: -"Uri"
    • removedOutput schema / title
      Removed value: -"Download"
  2. Addedv0.8.3

TDQS

A4.4/5.0
Behavior4/5

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

Beyond readOnlyHint=true, it discloses a non-obvious behavioral trait: 'The bytes stay out of the answer,' so the caller must use `path` or `uri` to actually get content. It also flags cost ('One API call') and a failure mode ('asking for it otherwise is a not-found'). It stops short of stating permissions or expiry/lifetime of the returned path/uri, which would complete the picture.

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?

Purpose is front-loaded in the first sentence and each subsequent line carries a distinct fact: output shape, link alternative, sibling differentiation. Phrasing is terse but slightly fragmented with inline code and parenthetical asides, which costs a little readability without padding.

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?

For a two-parameter read tool with an output schema and readOnlyHint, the description covers everything an agent needs: what it returns (not bytes), how to consume the result, and when to pick a sibling instead. Return-value details are correctly delegated to the output schema.

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 100%, so both `file_id` and `file_format` are already documented, including the xml-only-for-XRechnung not-found case. The description's discussion of `path` and `uri` explains output-handling rather than adding meaning to the input parameters, so it sits at the baseline for a fully covered 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?

The opening line names a specific verb and resource ('Save a stored file, such as an uploaded receipt') and immediately scopes it to stored files rather than rendered ones. It explicitly contrasts with `download_document` ('a sales document, which is rendered rather than stored'), so an agent can distinguish it from the nearest sibling without opening a 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?

The description routes to alternatives on two axes: `get_deeplink` for a human-clickable link, and `read_download`/a resource read for consuming the returned `uri`. It also states a negative fact ('The web app has no page for the file itself'), which heads off a plausible wrong choice.

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