Skip to main content
Glama
Unofficial Lexware Office MCP Server

Unofficial Lexware Office MCP Server

search_vouchers

Read-only

Find invoices, credit notes, quotations, and bookkeeping vouchers by contact, type, status, or date; filter open or overdue items to get voucher IDs for payment and document tools.

Instructions

Find invoices, credit notes, quotations and bookkeeping vouchers.

One API call per page. The only way to turn a question about the books into the ids get_voucher, get_payments and the document tools need. Starting from a customer name, get the contact id from search_contacts first and pass it here.

Rows carry id, type, status, number, dates, contact name, total and open amount. A row marked archived is filed away.

Narrow voucher_type and voucher_status to keep the answer small. voucher_status 'open' or 'overdue' answers "what is still outstanding" without paging through everything.

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": "search_vouchers"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoZero-based page number. Read the `page` block of the previous result before asking for another one, rather than paging blindly.
sizeNoRows per page. A larger page costs the same single API call but more of the answer's token budget, so raise it only when the whole list is genuinely needed.
sortNoOrdering. Newest voucher date first by default. createdDate and updatedDate are when it was entered or last changed.voucherDate,DESC
date_toNoLatest voucher date, as YYYY-MM-DD.
archivedNoSet true to look at archived documents, false for active ones. Left unset, both are returned.
date_fromNoEarliest voucher date, as YYYY-MM-DD. This is the date on the document, not the date it was entered.
contact_idNoOnly documents for this contact, by id from search_contacts.
voucher_typeNoWhich kind of document to look for. 'any' covers all of them. 'invoice' means a sales document, 'salesinvoice' and 'purchaseinvoice' are the bookkeeping records. Dunnings cannot be found here at all.any
voucher_numberNoThe document number, for example 'RE0001', matched in full and ignoring case. Not a prefix.
voucher_statusNoWhich state to look for. 'any' covers all of them. 'open' is everything unpaid, overdue included, 'overdue' only what is past its due date. 'paid' is settled, 'draft' is not finalized, 'voided' is cancelled.any

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changedv0.11.0
    • removedInput schema / properties / archived / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / archived / title
      Removed value: -"Archived"
    • addedInput schema / properties / archived / type
      Added value: +"boolean"
    • removedInput schema / properties / contact_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / contact_id / title
      Removed value: -"Contact Id"
    • addedInput schema / properties / contact_id / type
      Added value: +"string"
    • removedInput schema / properties / date_from / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / date_from / title
      Removed value: -"Date From"
    • addedInput schema / properties / date_from / type
      Added value: +"string"
    • removedInput schema / properties / date_to / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / date_to / title
      Removed value: -"Date To"
    • addedInput schema / properties / date_to / type
      Added value: +"string"
    • removedInput schema / properties / page / title
      Removed value: -"Page"
    • removedInput schema / properties / size / title
      Removed value: -"Size"
    • removedInput schema / properties / sort / title
      Removed value: -"Sort"
    • 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 / properties / voucher_status / title
      Removed value: -"Voucher Status"
    • removedInput schema / properties / voucher_type / title
      Removed value: -"Voucher Type"
    • removedInput schema / title
      Removed value: -"search_vouchersArguments"
  2. Addedv0.8.3

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only supply readOnlyHint=true, and the description goes well beyond that: one API call per page, the cost tradeoff of a larger page in token budget, what a row contains, and that `archived` marks filed-away documents. It stops short of permission or rate-limit details, but the paging and output shape disclosures are substantive.

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?

Front-loaded with purpose and routing in the first two sentences, then output shape, then filtering advice, in short scannable paragraphs. A few lines ('A row marked archived is filed away') are marginally redundant given the `archived` param description but still serve the no-output-schema case.

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 10-parameter, output-schema-less search tool, the description covers the entry path (via search_contacts), paging behavior, row contents, and the scoping filters that prevent over-fetching. Nothing an agent needs to invoke it correctly 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?

Schema coverage is 100% and the schema descriptions already explain 'open' vs 'overdue', the sort options and the date fields in similar words, so the description largely restates existing structured data. The one additive element is the strategic advice to narrow `voucher_type`/`voucher_status` to keep the answer small, which is modest beyond the 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?

Names a specific verb+resource ('Find invoices, credit notes, quotations and bookkeeping vouchers') and positions the tool within the sibling set: it is 'the only way to turn a question about the books into the ids `get_voucher`, `get_payments` and the document tools need.' An agent knows both what it does and what it feeds.

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 prerequisites (get the contact id from `search_contacts` first when starting from a customer name), a concrete routing case ('what is still outstanding' -> voucher_status 'open' or 'overdue'), a narrowing recommendation, and an exclusion ('Dunnings cannot be found here at all').

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