Skip to main content
Glama
Unofficial Lexware Office MCP Server

Unofficial Lexware Office MCP Server

get_voucher

Read-only

Retrieve a single bookkeeping voucher by ID or document number to read its booked amounts, tax type, line posting categories, and contact. Use the ID, or look one up first with search_vouchers.

Instructions

Read one bookkeeping voucher, by id or by its document number.

One API call. Returns the booked amounts, tax type, the posting category of every line, the contact and the version.

Prefer the id. A number is unique only by convention, and search_vouchers finds one across every document type.

For whether it has been paid, use get_payments with the same id.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_voucher"
  }
}

Input Schema

NameRequiredDescriptionDefault
voucher_idNoThe voucher's Lexware id, from search_vouchers. Give this or voucher_number, not both.
voucher_numberNoThe number printed on the document, for example 'RE-2026-014'. Use this when that is all you have.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.11.0
    • removedInput schema / properties / voucher_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / voucher_id / title
      Removed value: -"Voucher Id"
    • addedInput schema / properties / voucher_id / type
      Added value: +"string"
    • removedInput schema / properties / voucher_number / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / voucher_number / title
      Removed value: -"Voucher Number"
    • addedInput schema / properties / voucher_number / type
      Added value: +"string"
    • removedInput schema / title
      Removed value: -"get_voucherArguments"
  2. Addedv0.8.3

TDQS

A4.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds that it is one API call and enumerates the returned data (booked amounts, tax type, per-line posting category, contact, version), which matters because there is no output schema. It omits edge behavior such as what happens if neither or both keys are supplied, leaving a small gap.

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 the purpose, then returns, then key preference, then the sibling handoff. Four short sentences, each carrying distinct information with no repetition of schema text.

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-param read tool with a full schema and readOnly annotation, the description covers purpose, key selection, return contents, and the two most relevant sibling alternatives. Nothing essential for correct invocation 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%, so the baseline is 3, but the description adds genuine meaning: a voucher number is unique only by convention, so the id is the reliable key. That is decision-relevant guidance the schema does not convey. It does not repeat the mutual-exclusivity rule, which the schema already states.

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?

States a specific verb ('Read one') and resource ('bookkeeping voucher'), plus the two lookup keys (id or document number). The single-record scope is explicit and cleanly separates it from the list-style sibling search_vouchers.

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?

Explicitly names alternatives and the conditions selecting them: prefer id, use search_vouchers to find a number across document types, and use get_payments for payment status. That covers both when to use this tool and when to route elsewhere.

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