Skip to main content
Glama

List Documents

dokument_list
Read-only

Die Dokumente dieses Mandanten auflisten und DURCHSUCHEN (GET /dokumente) — OHNE Inhalt.

Die Liste nennt, was es an Dokumenten gibt: von einem Dokument ist nur
bekannt, was sie nennt — der Brief nennt Zahl und Titel, der Inhalt steht
nie darin. Sie dient auch dem Abgleich vor dem Anlegen: ein zweites
Dokument mit ähnlichem Namen ist kein Ersatz für das bestehende (ein
Dokument je Sache).

DIE ANTWORT IST EIN OBJEKT, nicht eine Liste:

    {treffer: [...], gesamt: n, abgeschnitten: bool, weiter: int | None}

`gesamt` ist die ZAHL ALLER Treffer, nicht die der gelieferten — wer eine
Liste liefert, liefert die Gesamtzahl mit. `weiter` ist der nächste
`offset` oder `None`, wenn es nichts mehr gibt; daran ist ohne eigene
Rechnung abzulesen, ob es weitere Seiten gibt. Dieselbe Form wie bei `suche`.

`q` durchsucht TITEL UND INHALT. Originaldateien (xlsx, docx, pdf, csv)
werden NICHT durchsucht — sie hängen am Dokument, ihr Text steht nicht
in COMPASS.

`sichtfeld=<persona-slug>` zeigt nur, was DIESE Persona sehen darf: alles
ohne Bereich plus die Bereiche ihres Sichtfelds. Ein unbekannter Slug ist
ein Fehler, kein leeres Ergebnis — sonst sähe ein Tippfehler aus wie
„diese Persona sieht nichts".

`bereich=<name>` filtert auf genau einen Bereich.

ORDNEN UND FINDEN (Auftrag 8472) -- alle Filter wirken in der Abfrage und lassen sich mischen:
  `art` = konzept | abnahme | bauplan | text | bericht | sonstiges | keine (mehrere mit Komma) ·
  `ordner` = Ordner-Nummer (aus `dokument_ordner_list`; mit allen Unterordnern, außer `mit_unterordnern=False`) oder `keiner` (= ohne Ordner) ·
  `status` = gilt | beendet | alle (ersetzt `beendet`) · `urheber` = Persona-Slug oder mensch | agent | rundgang ·
  `von`/`bis` = Datum (2026-10-28) auf die Zeit der letzten Änderung · `sort` = geaendert | erstellt | titel | relevanz (nur mit `q`), `richtung` = asc | desc.
`stand` = der ABGELEITETE Stand eines Dokuments: entwurf | zur_abnahme | abgenommen | mit_aenderungen | abgelehnt | beantwortet | umgesetzt | beendet (mehrere mit Komma). Er wird nicht gepflegt, sondern aus den Fragen zum Dokument
  (`frage_stellen(..., dokument_slug)`) und den Tickets/Epics mit Verweis auf das Dokument gerechnet; jede Trefferzeile trägt ihn als `stand`.
`facetten=True` liefert zusätzlich die ZAHL JE WERT für ordner, bereich, art, status und urheber (`wert: null` = „ohne") -- so ist sichtbar, wo sich ein Filter lohnt.
Ein unbekannter Wert ist ein Fehler (422), kein stilles Ignorieren.

`beendet=True` nimmt die verabschiedeten dazu. Standard ist „nur was
gilt" — ein beendetes Dokument verschwindet nie, es steht nur nicht mehr
in der täglichen Liste; es trägt dann `beendet_grund` und `beendet_von`.

Je Trefferzeile: `slug`, `titel`, `version`, `status`, `bereich`, die
Zeiten, dazu `urheber` ({art, name} oder null) und `anhaenge`
({anzahl, typen} oder null — `null` heißt „für Originaldateien gibt es
hier keinen Weg", `{anzahl: 0}` heißt „null Dateien").

`gesamt: 0` ist kein Fehler: ein Mandant ohne Dokumente hat keine.

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": "dokument_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNo
artNo
bisNo
vonNo
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).
sortNo
limitNo
standNo
offsetNo
ordnerNo
statusNo
beendetNo
bereichNo
urheberNo
facettenNo
richtungNo
sichtfeldNo
mit_unterordnernNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnlyHint/destructiveHint annotations, it discloses a lot of non-obvious behavior: unknown sichtfeld slug and unknown filter values are hard errors (422), not empty results; `gesamt` counts all matches; `weiter` carries the next offset; null vs {anzahl: 0} attachments have distinct meanings; beendet documents are hidden but never deleted and carry beendet_grund.

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?

Purpose and the response-object caveat are front-loaded and the filter block is well grouped under a heading. Some wording is decorative and repeatable ('der Brief nennt Zahl und Titel, der Inhalt steht nie darin') and the response object is restated in caps, which costs a little density for an 18-parameter tool.

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?

For a high-complexity, 18-parameter list/search tool with only a readOnly annotation, the description covers error semantics, pagination, filtering, derived `stand`, and facet behavior. The response-object explanation is partially redundant with the output schema, but it does not leave an agent guessing.

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?

Schema description coverage is only 6% and enum coverage is zero, so the description must carry the parameter burden, and it largely does: it supplies the value sets for art, status, sort, richtung, stand and sentinel values like 'keiner'. It documents the semantics of q, sichtfeld, bereich, ordner, urheber, von/bis, beendet, facetten and mit_unterordnern; only limit and offset pagination semantics remain thin.

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 opening sentence names a specific verb pair (auflisten/durchsuchen), the exact resource (Dokumente dieses Mandanten), the endpoint (GET /dokumente), and the crucial scope limit 'OHNE Inhalt'. That scope limit alone lets an agent distinguish it from dokument_get, which returns content.

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?

It gives concrete when-to-use guidance ('Abgleich vor dem Anlegen', one document per Sache) and explains filter combinations. It does not explicitly name all alternatives an agent might weigh (e.g. when to prefer dokument_get or suche instead), though it references suche's response shape and dokument_ordner_list as the source of folder numbers.

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.