Skip to main content
Glama

Sevdesk reopen voucher

sevdesk_reopen_voucher

Reopen a sevDesk voucher so it can be changed again. sevDesk refuses EVERY change to a booked voucher — new amounts, a corrected booking side, even just attaching the Beleg — with "You can only update draft documents", and neither PUT {status:50} nor saveVoucher gets around it. Two levels: to:"open" runs resetToOpen, which takes back the PAYMENT (status 750/1000 → 100) and releases the bank transaction; to:"draft" additionally runs resetToDraft (→ 50), which takes the voucher out of the books and is what makes it editable. A paid voucher needs both, in that order, and this tool does that for you. WHAT YOU OWE AFTERWARDS: reopening undoes real bookkeeping. Push the voucher again (sevdesk_push_documents force_update:true) to put it back on status 100, and if the payment was taken back, re-book it (sevdesk_book_payment). Until then the receipt is not in the books and the bank line counts as unassigned. DRY RUN BY DEFAULT: it reads the voucher and reports which steps it would run, without touching anything.

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

Input Schema

NameRequiredDescriptionDefault
toNo"draft" (default) makes the voucher editable — needed for any change including an attachment. "open" only takes back the payment and leaves the voucher booked, which is what you want when the amounts are right and only the payment was booked wrongly.
dry_runNoDefault TRUE. Reports the current status and the steps that would run, without writing.
voucher_idNoThe sevDesk voucher id directly, for a voucher that has no document here. A `v-` prefix from the importer is stripped.
document_idNoThe Book-AI-ze document whose voucher should be reopened. Either this or voucher_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Goes well beyond the annotations by disclosing the default dry_run behavior, the concrete status transitions (750/1000 → 100 → 50), and the post-reopen obligations. However, it frames reopening as undoing 'real bookkeeping' and taking the voucher 'out of the books', which sits awkwardly against destructiveHint=false and is not reconciled in the text. Not a contradiction (the change is reversible via push), but the safety profile is never explicitly squared with the annotation.

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, then the constraint, then the mechanics, then obligations and the dry-run default — a sensible ordering. It is dense and largely earns its length, though the quoted error string and the restatement of 'to' semantics duplicate schema content and could be trimmed.

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 four-parameter mutation tool with no output schema, the definition covers the triggering condition, both execution levels, default safety behavior, and the exact follow-up calls needed to restore state. An agent has everything required to invoke it correctly and recover afterwards.

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%, so all four parameters are already documented, including the 'to' enum values and dry_run default. The description adds the sequencing rationale (both levels, in that order) but repeats rather than extends the per-parameter meaning. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

Opens with a specific verb+resource ('Reopen a sevDesk voucher so it can be changed again') and immediately scopes it by naming the exact failure it works around. It is clearly differentiated from sevdesk_push_documents and sevdesk_book_payment, which are described as follow-ups rather than alternatives.

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 states when to use each mode ('open' when amounts are right and only the payment was mis-booked; 'draft' when any change including an attachment is needed) and gives the required ordering for a paid voucher. It also tells the agent what to do afterwards, which is the kind of routing guidance most definitions omit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources