Skip to main content
Glama

Sevdesk delete voucher

sevdesk_delete_voucher
Destructive

Delete a sevDesk voucher that is a DRAFT (status 50) — the way back from a receipt that should never have been pushed, e.g. a duplicate of one sevDesk already had. sevdesk_reopen_voucher takes a voucher OUT of the books but leaves it lying around as a draft; this removes it. REFUSES anything else, and says why: a voucher at 100/750/1000 is still in the books (reopen it first), and a voucher with a booked payment is refused even at status 50. An ISSUED INVOICE is not a voucher — cancel it in sevDesk, or use sevdesk_delete_invoice_draft while it is a draft. Deleting cannot be undone, so the local document is kept: it only loses its sevdesk_id and sync status, so it no longer points at a voucher that is gone, and it can be corrected and pushed again. Every run is written to audit_logs with the reason. DRY RUN BY DEFAULT: it reads each voucher and reports number, status, amount, supplier and whether it would be deleted, without writing. dry_run:false is the approval and needs reason.

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

Input Schema

NameRequiredDescriptionDefault
reasonNoWhy it is deleted (min. 10 characters) — required for dry_run:false, and it goes into the audit log.
dry_runNoDefault TRUE. Reports what would be deleted, 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 deleted. Either this, voucher_id or voucher_ids.
voucher_idsNoSeveral voucher ids at once, max 25. Each one is checked on its own; one refusal does not stop the others.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false and openWorldHint=true, so the safety profile is carried structurally; the description adds genuinely new behavior: the server-side refusal rules with reasons, that deletion is irreversible, that the local document survives with only sevdesk_id and sync status cleared, that every run is written to audit_logs, and that dry_run is the default with dry_run:false acting as approval. Those are real additions beyond the annotations and push it above baseline, but the description does not describe the response payload beyond the dry-run report, so it is not a full 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?

Front-loaded with the core constraint (DRAFT status 50) before the alternatives, then refusals, then consequences, then the dry-run default. Dense but every sentence carries a distinct fact an agent needs; the parenthetical examples clarify rather than pad. No boilerplate or repetition.

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 destructive, multi-input mutation tool with no output schema, the description covers preconditions, refusal paths, alternatives, side effects on local data, audit logging, and the approval mechanism. Nothing material an agent needs in order to call it safely and 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%, so per-parameter meaning is already supplied and the baseline would be 3. The description still adds cross-parameter semantics the schema states only in fragments: that dry_run:false is the approval act and specifically requires a reason, and that the dry run reports number, status, amount, supplier and deletion decision. The three-way mutual exclusivity of voucher_id/document_id/voucher_ids is only implied, which keeps it from a 5.

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 ('Delete a sevDesk voucher') and immediately narrows scope to DRAFT status 50, explicitly distinguishing itself from sevdesk_reopen_voucher ('takes a voucher OUT of the books but leaves it lying around as a draft; this removes it') and from invoice handling. An agent can pick this tool over its siblings without opening a 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?

Gives explicit when-to-use (a receipt that should never have been pushed, e.g. a duplicate), explicit when-not (status 100/750/1000 is still in the books; a booked payment is refused even at status 50; an issued invoice is not a voucher), and names the alternatives for each refused case (reopen first, cancel in sevDesk, or sevdesk_delete_invoice_draft while it is a draft). This is about as complete as routing guidance gets.

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