Skip to main content
Glama

Sevdesk attach document

sevdesk_attach_document

Attach the stored PDF to a document's EXISTING sevDesk voucher, so a voucher that was created without its Beleg gets one. Changes nothing else about the voucher — not its status, dates, sums, positions or payment. It does NOT work on a booked voucher: sevDesk refuses every change to one, an attachment included, with "You can only update draft documents". Reopen it first with sevdesk_reopen_voucher. (An older sevDesk account model did allow this, which is why this tool used to claim it was safe on paid vouchers — it is not.) DRY RUN BY DEFAULT, and the dry run is itself the audit: it reads each voucher back and reports which ones currently have no document and whether Book-AI-ze holds a PDF to give them. With no document_ids it targets every document in this account that has a sevdesk_id.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax documents in one call (default 50, max 200)
dry_runNoDefault TRUE — reports what is missing without uploading. Pass false to attach.
overwriteNoAttach again even if the voucher already has a document, adding a second copy. Default false, so a backfill can be re-run safely.
document_idNoA single document id, for convenience.
document_idsNoSpecific document ids. Omit to consider every document that has a sevDesk voucher.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

The annotations only mark this as not read-only, open-world, and not idempotent. The description adds what actually changes: nothing about status, dates, sums, positions, or payment. It gives the failure mode on booked vouchers with the literal error text and explains the dry-run-as-audit behavior and the overwrite re-run safety. It also corrects a prior false claim, so the behavior surface is unusually well disclosed.

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?

Core behavior and the draft-only constraint are front-loaded, and every sentence carries operational weight. The parenthetical about the older account model is slightly digressive, though it justifies the correction to the earlier claim. It is dense but not padded.

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?

There is no output schema, and the description still explains what the dry run returns: which vouchers lack a document and whether a PDF exists to attach. For a five-parameter mutation with zero required parameters, nothing an agent needs for correct invocation 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 the baseline is 3. The description adds meaning beyond the schema: omitting document_ids considers every document with a voucher, dry_run is itself the audit read-back, and overwrite means adding a second copy rather than replacing. The limit parameter is left to the schema, which is fine.

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: attach a stored PDF to an existing sevDesk voucher that lacks its Beleg. It also states the scope explicitly (no document_ids targets every document with a sevdesk_id), so an agent can distinguish this from push, create, or update 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 preconditions: it works only on draft vouchers, and sevDesk refuses booked vouchers with a quoted error. It names the alternative remediation (sevdesk_reopen_voucher) and explains the default dry-run path. That is a complete when-to-use and when-not-to-use guide.

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