Skip to main content
Glama

List Document Versions

dokument_versionen
Read-only

Die abgelösten Fassungen eines Dokuments (GET /dokumente/{slug}/versionen).

Neueste zuerst, je Eintrag `version`, `titel`, `inhalt`, `notiz`, `gilt_von`,
`gilt_bis` und `urheber` (`{art: mensch|agent, name}`: wer diese Fassung nach der Spur GENANNT geschrieben hat -- ein ungebundener Schluessel darf jede Persona nennen, die Angabe ist kein Beweis --, `null`, wo es keinen Spureintrag gibt; CMP-29). Die GELTENDE Fassung steht hier NICHT — die holt
`dokument_get`. Zwei Wege zu derselben Fassung wären zwei Wahrheiten,
und die zweite könnte veralten.

Wofür man das braucht: Markdown ist gewählt, damit eine Änderung als
Zeilen lesbar ist. Das hier ist die Gegenseite dieses Satzes — ohne die
alten Fassungen gäbe es nichts zu vergleichen.

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

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/destructive annotations it discloses ordering (newest first), the exact per-entry fields returned, and a genuine caveat: `urheber` merely records who was NAMED in the trace, is not proof of authorship, and is null when no trace entry exists. That provenance warning is behavior an agent could not infer from annotations or schema.

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 core identification and the exclusion rule are front-loaded, and the field list is dense and useful. Some justification prose ('Zwei Wege zu derselben Fassung wären zwei Wahrheiten' and the markdown rationale) is more explanatory than operational, but it does support the routing decision.

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 read-only list tool with an output schema available, the description covers ordering, exclusions, field meaning, and provenance caveats. Minor gaps remain: no pagination/limit behavior and no statement about empty history or unknown-slug errors.

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 50%: the `chat` parameter is already documented in the schema (acting as a chat persona vs. unbound connection), and the description only conveys `slug` indirectly through the path template /dokumente/{slug}/versionen. It adds little meaning beyond that, and says nothing about the `chat` parameter or behavior on an unknown slug.

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 ('Die abgelösten Fassungen eines Dokuments') plus the backing endpoint GET /dokumente/{slug}/versionen. It explicitly distinguishes itself from the sibling that returns the current version, so an agent can route between the two without reading 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?

Gives an explicit when-not rule: the GELTENDE Fassung is NOT here, use `dokument_get` instead, with a stated reason (two paths to the same version would be two truths). It also states the positive use case — retrieving old versions as the counterpart to readable per-line diffs.

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.