Skip to main content
Glama

Sevdesk finalize invoice

sevdesk_finalize_invoice

Finalize an outgoing invoice DRAFT in sevDesk: it leaves status 100 (draft), sevDesk assigns the invoice number from its own sequence, and the send method is recorded as e-mail (the mail itself is sent locally, not by sevDesk). After this the invoice is issued — it can only be cancelled (Storno), never deleted. Records number and status on the Book-AI-ze document. Then fetch the final PDF with sevdesk_invoice_pdf. 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_finalize_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoDefault TRUE: report the draft without finalizing. Pass false to finalize.
document_idYesThe Book-AI-ze document of the invoice draft.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Exceptionally informative beyond annotations: the status transition out of 100, that sevDesk assigns the number from its own sequence, that the send method is recorded as e-mail but the mail is sent locally rather than by sevDesk, and that the result is irreversible. The only residual gap is what the tool returns on a dry run versus a real finalize. destructiveHint=false is not contradicted (nothing is deleted), though the irreversible issuance is a stronger state change than that hint conveys.

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 action, then consequences, then the next step, then the safety default. Four dense sentences with no filler; even the side-effect note (recording number and status on the Book-AI-ze document) earns its place.

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 two-parameter mutation with no output schema, the description covers the precondition, the side effects, the irreversibility, the mail-sending nuance, the dry-run default, and the follow-up call. An agent can invoke it correctly and knows what to do next without additional context.

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 documented in-schema, so the description only needs to add meaning; it echoes the dry-run default and identifies document_id as the draft document but adds no format or sourcing detail. 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?

"Finalize an outgoing invoice DRAFT in sevDesk" gives a specific verb and resource plus the precondition (status 100 draft). It distinguishes the operation from sibling operations by stating the resulting state (issued, cancel-only, never deletable), which separates it from sevdesk_delete_invoice_draft without needing to read either 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 the prerequisite (an outgoing invoice draft), the default mode (dry run, so the agent knows it won't act unless dry_run=false is passed), and the required follow-up ("Then fetch the final PDF with sevdesk_invoice_pdf"). The line "it can only be cancelled (Storno), never deleted" implicitly routes deletion-style intents to a different sibling.

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