Skip to main content
Glama

Sevdesk set voucher account

sevdesk_set_voucher_account

Change the booking CATEGORY (AccountingType) on the positions of a voucher that is already in sevDesk — without reopening it and without touching its payment. READ THIS BEFORE REACHING FOR sevdesk_reopen_voucher: that tool's warning that sevDesk refuses every change to a booked voucher is true for the VOUCHER object, but NOT for its POSITIONS. PUT /VoucherPos/{id} is accepted on a voucher at status 1000 (fully paid), measured on 18.09.2026 against two real Hetzner vouchers: the category changed, and status, sum and booked payment all stayed exactly as they were. So a wrong category is NOT a reason to reopen a voucher, take back its payment and push it again — that trade was made before only because nobody had tried this. WHY IT MATTERS EVEN THOUGH THE LEDGER ACCOUNT IS THE SAME: several AccountingTypes can map to one chart account. 2819 "Software-Miete / Lizenzen" and 2820 "Web-Hosting / Domains" both post to SKR03 4964 / SKR04 6837, so amount, tax and the DATEV export are identical — only the label sevDesk groups and reports by differs. book_invoice derives the type from the account and therefore always picks the account's default, which for a hosting supplier is the wrong one. Pass skr_account_number to take the tenant's own mapping for that account, or accounting_type to set a specific sevDesk category id when the account's default is not what you want (that is the Hetzner case). Every position of the voucher is set, and each one is read back afterwards and reported — a write that did not stick must not look like a success. DRY RUN BY DEFAULT: it reads the voucher and its positions and reports what it would set.

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_set_voucher_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoDefault TRUE. Reports each position and the category it would get, without writing.
frameworkNoWhich chart skr_account_number belongs to: "SK03" or "SK04". Default SK04.
voucher_idNoThe sevDesk voucher id directly. A `v-` prefix from the importer is stripped.
document_idNoThe Book-AI-ze document whose voucher should be recategorised. Either this or voucher_id.
accounting_typeNoThe sevDesk AccountingType id to set, e.g. "2820". Use this when the chart account's default mapping is not the one you want. Takes precedence over skr_account_number.
skr_account_numberNoTake the AccountingType from this tenant's mapping for that chart account, e.g. "6837". Ignored when accounting_type is given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=false; the description goes well beyond them by disclosing that dry_run is on by default, that every position of the voucher is set, that each position is read back and reported so a failed write cannot look like success, and that status/sum/payment are untouched. The empirical claim about status 1000 is useful but reads as anecdote rather than a stable contract, which keeps this from 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and the sibling warning are correctly front-loaded, but the body drifts into argumentative narrative ('that trade was made before only because nobody had tried this') and a point-in-time test anecdote with a specific date. Several sentences restate the same point about reopening versus changing positions, which dilutes an otherwise strong opening.

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 6-parameter mutating tool with no output schema and no required parameters, the definition covers the safety posture (dry run default), the precedence between the two category-selection parameters, and the post-write verification behavior. It does not describe the report/return shape the read-back produces, and it leaves the framework and voucher_id/document_id choice to the schema, which is acceptable at 100% coverage but leaves a small gap.

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 parameter descriptions already carry the precedence rules; the description nevertheless adds real meaning by explaining why two distinct AccountingTypes (2819 vs 2820) can post to the same chart account (SKR03 4964 / SKR04 6837) and therefore why the choice of parameter matters materially even when amounts and tax are identical.

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?

The opening sentence names a precise verb, resource and sub-resource: change the booking CATEGORY (AccountingType) on the POSITIONS of an existing voucher, without reopening it or touching payment. It explicitly distinguishes itself from sevdesk_reopen_voucher and book_invoice, so an agent can identify it without opening the schema.

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?

It states when to use it and when not to (do not reach for sevdesk_reopen_voucher, a wrong category is not a reason to reopen), and it gives the selection rule between the two input paths: skr_account_number for the tenant's mapping, accounting_type for an explicit category id when the default is wrong (the Hetzner hosting case). It also explains why book_invoice's derived type is insufficient here.

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