Skip to main content
Glama

Sevdesk delete invoice draft

sevdesk_delete_invoice_draft
Destructive

Delete an outgoing invoice in sevDesk while it is still a DRAFT (status 100) and unlink it from the Book-AI-ze document, so it can be corrected and pushed again. Refuses anything past draft — an issued invoice is cancelled (Storno) in sevDesk, never deleted. Dry run by default.

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": {
      "document_id": "<document_id>"
    },
    "name": "sevdesk_delete_invoice_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoDefault TRUE: report number and status without deleting. Pass false to delete.
document_idYesThe Book-AI-ze document whose sevDesk invoice draft should be deleted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description adds what the agent actually needs: the operation is restricted to drafts, it also unlinks the linked Book-AI-ze document, and it refuses non-draft status. Combined with 'Dry run by default,' the destructive profile and its guardrail are fully disclosed beyond the annotation flags.

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?

Three tight sentences: operation plus scope first, refusal rule second, safety default last. No filler, and the safety-critical constraint is front-loaded.

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 destructive mutation with no output schema, the description covers precondition, side effects, and the dry-run safety valve, which is close to complete. Minor gaps remain: it does not say what the dry run reports or what error surfaces when a non-draft is submitted.

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% and both parameters are already documented, including dry_run defaulting to true. The description echoes the dry-run default and clarifies that document_id refers to the Book-AI-ze document whose link is severed, but adds little syntax or value beyond the schema. Baseline 3 is appropriate.

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 an outgoing sevDesk invoice) bounded by a precise precondition (status 100 draft). It also names the side effect (unlinking the Book-AI-ze document) and the distinction from Storno, so an agent can tell this apart from cancellation or finalization siblings.

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?

Explicit when-not guidance: 'Refuses anything past draft — an issued invoice is cancelled (Storno) in sevDesk, never deleted,' which tells the agent to route issued invoices elsewhere. It stops short of naming the specific sibling tool that performs the Storno/cancel path, leaving that mapping to inference.

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