Skip to main content
Glama
Unofficial Lexware Office MCP Server

Unofficial Lexware Office MCP Server

get_payments

Read-only

Check whether a voucher is paid, what amount and currency remain outstanding, and which individual payments are recorded to determine settlement.

Instructions

Show whether a voucher has been paid, and what is still open.

Returns the payment status, the amount still outstanding, the currency and the individual payments recorded against it. Costs one API call.

Takes the id of the voucher, not of a payment. An openAmount of 0 is the answer to "is it settled" and is reported rather than omitted. For the document itself use get_voucher or get_sales_document.

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": {
      "voucher_id": "<voucher_id>"
    },
    "name": "get_payments"
  }
}

Input Schema

NameRequiredDescriptionDefault
voucher_idYesThe voucher's Lexware id, as returned by search_vouchers. Not the voucher number a human reads off the document.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.11.0
    • removedInput schema / properties / voucher_id / title
      Removed value: -"Voucher Id"
    • removedInput schema / title
      Removed value: -"get_paymentsArguments"
  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, and the description adds genuinely new behavior: it costs one API call, and an openAmount of 0 is explicitly reported rather than omitted. That last point is a real output quirk an agent could otherwise misread as a missing field. It stops short of describing pagination or error behavior, which is minor for a single-record read.

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?

The answer to the core question is front-loaded in the first sentence, followed by return contents, cost, and id caveat in short scannable paragraphs. Every sentence carries information; none restates the title or name.

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 one-parameter read tool with no output schema, the description covers purpose, return fields (status, outstanding amount, currency, individual payments), cost, id semantics, and sibling routing. Nothing an agent needs to call it correctly 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 already warns the id is not the human-readable voucher number, so the description reinforces rather than replaces it. The added 'not of a payment' framing clarifies which id domain is expected, which the schema alone does not say.

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 and resource ('show whether a voucher has been paid, and what is still open') and names exactly what is returned. It explicitly separates itself from the document-fetching siblings get_voucher and get_sales_document.

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?

Tells the agent when to use it (settlement/outstanding-amount questions) and names the alternatives to use for the document itself. The exclusion 'Takes the id of the voucher, not of a payment' further disambiguates the input context.

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