Skip to main content
Glama

Beleg ausstellen

finalize_document
Destructive

Entwurf ausstellen: vergibt die fortlaufende Nummer, danach unveränderlich. Nicht rückgängig zu machen. Ein Angebot steht danach auf status sent (offen zur Entscheidung), status_label «Ausgestellt», bis es mit send_document oder mark_sent wirklich raus ist.

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": {
      "id": "<id>"
    },
    "name": "finalize_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesBeleg-ID
issue_dateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, and the description reinforces this with concrete detail: the number is assigned on issuance, the document becomes immutable, and the operation cannot be undone. It also names the resulting status/status_label, which is genuine value beyond the annotations. It stops short of stating permission requirements or what the response contains.

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?

Front-loaded with the operation itself, then the irreversibility warning, then the resulting state — a sensible priority order. Three sentences with little waste, though the status/status_label clause is denser than it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, non-idempotent mutation with no output schema, the description covers consequences on the entity but omits the return value, the role of issue_date, and which document types it applies to (invoices, credit notes, quotes all have sibling tools). Adequate but with clear gaps an agent must guess around.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%: 'id' is labeled 'Beleg-ID' and 'issue_date' has no schema description at all, and the description never mentions the issue_date parameter or its effect (e.g. whether it backdates the assigned number). With half the parameters undocumented, the description fails to compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Entwurf ausstellen') and its two defining effects: assigns the sequential number and becomes immutable afterwards. It contrasts the post-state with send_document/mark_sent, so the agent can tell issuing from sending. It does not, however, distinguish this from siblings like create_document or decide_quote, and the title ('Beleg ausstellen') vs name (finalize_document) leaves document-type scope ambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only routing guidance is the note that a quote remains 'offen zur Entscheidung' until it actually goes out via send_document or mark_sent — useful but limited to one follow-up path. There is no statement of when NOT to use this tool (drafts of other document types, already-issued documents) nor which prerequisites must hold before issuing.

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