Skip to main content
Glama
lexware-php-mcp

lexware-php-mcp

Voucher detail

voucher_detail
Read-onlyIdempotent

Retrieves line items and net, tax, and gross amounts for a single Lexware Office voucher using its ID and voucher type.

Instructions

Line items and net, tax and gross amounts of one Lexware Office voucher. Needs the id and voucherType as returned by search_vouchers or open_items.

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": {
      "id": "<id>",
      "voucherType": "<voucherType>"
    },
    "name": "voucher_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesVoucher id (UUID) as returned by search_vouchers or open_items.
voucherTypeYesLexware voucher type as returned by search_vouchers, e.g. "invoice", "creditnote", "salesinvoice".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds value beyond them by disclosing what the caller receives back (line items and net/tax/gross amounts), which matters because there is no output schema. It says nothing about error behavior for an invalid id/voucherType, which keeps it short of a 5.

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?

Two short sentences, zero filler, with the resource and returned data front-loaded and the input requirement second. Nothing could be removed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 rich annotations and full schema coverage, the description supplies the one thing structured data does not: a summary of the returned contents. The absence of any note on failure modes for a malformed voucherType is a minor gap, not a blocking one.

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 description coverage is 100%, and the schema already labels both parameters as 'as returned by search_vouchers or open_items' and gives voucherType examples. The description's parameter sentence largely restates that, so it adds little meaning beyond the structured fields; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource (one Lexware Office voucher) and specifies the payload (line items plus net, tax and gross amounts), which is more informative than the title alone. It does not explicitly contrast with a sibling retrieval tool, but it does name search_vouchers and open_items as the upstream sources, which helps an agent place it in the workflow.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states a clear prerequisite chain: the id and voucherType must come from search_vouchers or open_items, so an agent knows it cannot call this cold. It gives no explicit exclusions or when-not guidance, but there is no obvious competing retrieval sibling to disambiguate against.

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