Skip to main content
Glama

Comment on Document

dokument_kommentar_put
Destructive

Ein Dokument kommentieren (POST /dokumente/{slug}/kommentare).

Haengt an der AKTUELLEN Fassung. `abschnitt` = die Ueberschrift eines Abschnitts dieser Fassung (genau so geschrieben, ohne die `#`); ohne Angabe gilt der Kommentar dem ganzen Dokument. `text` ist Text
(hoechstens 4000 Zeichen, kein Markdown). `antwort_auf` = die Nummer eines Kommentars dieses Dokuments: dann ist es eine ANTWORT (eine Ebene, sie erbt Fassung und Abschnitt, hat keinen eigenen Zustand). `von_persona` = als wer du schreibst (ein gebundener Zugang nur als seine Persona, ein anderer als deine eigene ist 403); ohne Angabe schreibt der angemeldete Mensch. Der Verantwortliche des Dokuments bekommt eine Nachricht.
Kommentieren aendert den Text des Dokuments nicht.

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>",
      "text": "<text>"
    },
    "name": "dokument_kommentar_put"
  }
}

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
textYes
abschnittNo
antwort_aufNo
von_personaNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond readOnlyHint=false/destructiveHint=true, it discloses real side effects: the document owner is notified, a persona mismatch yields 403, a bound connection may only write as its own persona, and replies inherit version and section with no state of their own. The claim that commenting does not alter document text sits slightly at odds with destructiveHint=true, but it describes the operation rather than contradicting it outright.

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 endpoint, then parameter-by-parameter in backticks, so an agent can scan it quickly. It is dense and somewhat run-on, but no sentence is filler.

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 6-parameter mutation tool this is nearly complete: identity rules, length limit, section and reply semantics, and notification behavior are all covered, and an output schema exists so return values need no explanation. Only explicit guidance on which sibling to prefer for listing or closing comments is absent.

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

Parameters5/5

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

With schema coverage at 17%, the description carries the load and does: `abschnitt` must be the exact section heading without `#` (default whole document), `text` is plain text capped at 4000 chars with no Markdown, `antwort_auf` is a comment number producing a one-level reply, and `von_persona` is the author identity with the 403 rule spelled out.

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?

"Ein Dokument kommentieren (POST /dokumente/{slug}/kommentare)" gives a specific verb, resource, and endpoint. The closing line "Kommentieren aendert den Text des Dokuments nicht" separates it cleanly from dokument_put/dokument_patch, and the reply/version binding separates it from dokument_kommentar_list and the erledigen/beenden 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?

Clear context for use: comment attaches to the CURRENT version, omitting `abschnitt` targets the whole document, and setting `antwort_auf` turns the call into a reply rather than a new thread. It does not explicitly name alternative tools or state exclusions, so it stops short of a 5.

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.