Skip to main content
Glama

End Document

dokument_beenden
Destructive

Ein Dokument verabschieden (POST /dokumente/{slug}/beenden) -- MIT GRUND.

`grund` ist PFLICHT: ein beendetes Dokument bleibt lesbar, und wer es später findet, soll sehen, WARUM es nicht mehr gilt. Ein leerer Grund wird abgewiesen (422, `feld: grund`).

DAS IST DER WEG STATT LOESCHEN, und es gibt keinen anderen: gelöscht
wird nicht (in COMPASS wird nichts gelöscht). Das Dokument bleibt lesbar und
trägt ab jetzt `status: "beendet"` mit dem Zeitpunkt; `dokument_list`
zeigt es nur noch mit `beendet=True`.

Wem hier ein Löschweg fehlt, dem fehlt in Wahrheit ein Zustand — und
der ist genau das hier.

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": {
      "slug": "<slug>",
      "grund": "<grund>"
    },
    "name": "dokument_beenden"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatNoChat token returned by `persona_waehlen`. With it, the call acts as the persona of that chat; without it, as the unbound connection (Chat-Token aus `persona_waehlen`: mit ihm handelt der Aufruf als die Persona dieses Chats, ohne ihn als die ungebundene Verbindung).
slugYes
grundYes

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

Beyond the annotations it discloses the key behaviors: the document stays readable, gains status 'beendet' plus a timestamp, and an empty reason is rejected with 422 on field 'grund'. That is substantial context for a mutation tool. It does not address repeat/idempotent calls (ending an already-ended document) or any permission requirements, which keeps it below a 5.

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?

The mandatory-parameter warning and the no-delete framing are front-loaded before the mechanics, which is good ordering. The closing aphorism ('Wem hier ein Löschweg fehlt, dem fehlt in Wahrheit ein Zustand') is rhetorical rather than operational and could be dropped, though it does reinforce the intent.

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?

With an output schema present, return values need not be described, and the state transition plus list-visibility semantics are covered. The only gaps are second-call/idempotency behavior and whether any permission or persona binding is required beyond the optional chat token.

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 only 33% (only 'chat' is documented in the schema), so the description must carry 'slug' and 'grund'. It does so well for 'grund' — mandatory, why it matters, and the exact 422 rejection with 'feld: grund' — while 'slug' is only implied by the endpoint path, not explained.

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?

The description opens with a precise verb+resource ('Ein Dokument verabschicken') and even the underlying endpoint (POST /dokumente/{slug}/beenden), and immediately states the effect: the document gets status 'beendet'. It is clearly distinguishable from siblings such as dokument_patch or dokument_list because it names the state transition rather than an edit or a read.

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 explicitly frames this as the replacement for deletion ('DAS IST DER WEG STATT LOESCHEN, und es gibt keinen anderen'), so an agent knows both when to reach for it and that no delete alternative exists in the sibling set. It also warns that dokument_list only surfaces ended documents with beendet=True, which tells the agent how to verify the outcome afterwards.

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.