Skip to main content
Glama
Unofficial Lexware Office MCP Server

Unofficial Lexware Office MCP Server

read_download

Read-only

Reads a downloaded Lexware Office file into the conversation when the client cannot open its path or URI, including XML text, PDF pages, images, or embedded binary content.

Instructions

Put the contents of a downloaded file into this conversation.

No API call. Use it when the client cannot open the path or follow the uri, or when the content itself is the answer.

What arrives depends on the file: XML as text, so an XRechnung can be read. PDF as pictures of its pages, the first 10 unless max_pages says otherwise. Check pages against pagesShown and raise it, or pass null for up to 100, if the rest matters. For a long PDF or its exact wording, pass pdf_as "file" if you can open files: the PDF itself arrives as a file. Images as images. Anything else as an embedded binary.

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": {
      "uri": "<uri>"
    },
    "name": "read_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
uriYesThe `uri` a download reported, of the form lexware://download/... Only files this server downloaded can be read.
pdf_asNoA PDF as pictures of its pages, which every client can show, or as the file itself, for a model that can open files.pages
max_pagesNoFor a PDF as pages, how many to render from the front. Defaults to 10. Pass null for every page, up to 100, and expect roughly two thousand tokens per page.

Output Schema

NameRequiredDescriptionDefault
uriYesThe download that was read.
sizeYesSize in bytes.
pagesNoHow many pages the document has, for a PDF.
mimeTypeYesThe file's content type.
pagesShownNoHow many of them were rendered into this answer.
deliveredAsYesHow the content was put into the answer: 'text' for something readable such as an XRechnung, 'image' for a picture, 'pages' for a PDF rendered to images, 'file' for the PDF itself, or 'binary' for anything the client has to handle itself.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changedv0.11.0
    • changedInput schema / properties / max_pages / description
      Previous value: -"For a PDF, how many pages to render from the front. Defaults to 10. Pass null for every page, up to 100, and expect roughly two thousand tokens per page."New value: +"For a PDF as pages, how many to render from the front. Defaults to 10. Pass null for every page, up to 100, and expect roughly two thousand tokens per page."
    • removedInput schema / properties / max_pages / title
      Removed value: -"Max Pages"
    • addedInput schema / properties / pdf_as
      Added value: +{
      +  "default": "pages",
      +  "description": "A PDF as pictures of its pages, which every client can show, or as the file itself, for a model that can open files.",
      +  "enum": [
      +    "pages",
      +    "file"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / uri / title
      Removed value: -"Uri"
    • removedInput schema / title
      Removed value: -"read_downloadArguments"
    • changedOutput schema / properties / deliveredAs / description
      Previous value: -"How the content was put into the answer: 'text' for something readable such as an XRechnung, 'image' for a picture, 'pages' for a PDF rendered to images, or 'binary' for anything the client has to handle itself."New value: +"How the content was put into the answer: 'text' for something readable such as an XRechnung, 'image' for a picture, 'pages' for a PDF rendered to images, 'file' for the PDF itself, or 'binary' for anything the client has to handle itself."
    • removedOutput schema / properties / deliveredAs / title
      Removed value: -"Deliveredas"
    • removedOutput schema / properties / mimeType / title
      Removed value: -"Mimetype"
    • removedOutput schema / properties / pages / title
      Removed value: -"Pages"
    • removedOutput schema / properties / pagesShown / title
      Removed value: -"Pagesshown"
    • removedOutput schema / properties / size / title
      Removed value: -"Size"
    • removedOutput schema / properties / uri / title
      Removed value: -"Uri"
    • removedOutput schema / title
      Removed value: -"Delivered"
  2. Addedv0.8.3

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the description's added value is in disclosing per-format behavior: XML arrives as text, PDFs as page images (first 10 by default), images as images, everything else as embedded binary. It also warns about the `pages` vs `pagesShown` mismatch and the token cost, which are behaviors no structured field conveys.

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 purpose is front-loaded in one sentence, followed by usage conditions and then a format breakdown; every sentence carries information. It is slightly dense in the format paragraph, but nothing is filler.

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 tool whose 'return' is arbitrary file content, the description covers exactly what the agent needs: which formats arrive how, the default page cap and how to lift it, and the fallback for clients that can open files. An output schema exists, so return shape need not be restated, and no behavioral gap relevant to correct invocation remains.

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%, so the schema already documents `uri`, `pdf_as`, and `max_pages`, and the description largely restates them (including the ~2000 tokens/page figure that also appears in the schema). It does add operative guidance the schema lacks: check `pages` against `pagesShown` and raise it, and choose `pdf_as` 'file' specifically for long PDFs or exact wording.

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 states a specific verb and resource: 'Put the contents of a downloaded file into this conversation,' and immediately scopes it with 'No API call,' which separates it from the download_* siblings that produce files. An agent can tell from the description alone that this consumes an existing download rather than fetching anything.

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 explicit selection criteria: use when the client cannot open the `path` or follow the `uri`, or when the content itself is the answer. It also states a precondition ('Only files this server downloaded can be read') and a conditional variant (use `pdf_as` 'file' if you can open files), leaving little to inference.

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