Skip to main content
Glama

Search

suche
Read-only

Volltext über Aussagen + Ereignisse + Dokumente (GET /suche?q=&subjekt_id=).

`persona_slug`: die eigene Persona-Kennung — Sichtfeld-Filter, siehe
`gilt`.

DREI TREFFERTYPEN, nicht zwei. Je Treffer sagt `typ`, was es ist:

    aussage   `text` = der Aussagentext, `sache` = die Sache,
              `status`/`gilt_seit`/`gilt_bis`/`ersetzt_durch` gesetzt.
    ereignis  `text` = Text oder `inhalt_ref`, keine Geltung.
    dokument  `text` = der TITEL (nicht der Inhalt -- ein Dokument ist
              mehrere Kilobyte Markdown), `sache` = der **Slug**,
              `status` = gilt/beendet, `gilt_bis` = `beendet_am`.

**Den Inhalt holst du mit `dokument_get(slug=<der Wert in `sache`>)`.**
Dass `sache` bei diesem Typ einen Dokument-Slug trägt und keine Sache,
ist eine Umdeutung der Spalte -- sie steht so im Vertrag (spec/api.md),
damit niemand den Slug für eine Sache hält und `gilt(slug=…)` darauf
ruft.

BEENDETE DOKUMENTE BLEIBEN TREFFER, aber sie stehen hinten -- wie
beendete Aussagen. Was nicht mehr gilt, wird gezeigt und nicht
weggelassen; `status` sagt es.

`subjekt_id` SCHLIESST DOKUMENTE AUS: sie gehören dem Mandanten, nicht
einem Subjekt, und könnten die Einschränkung nicht erfüllen. Sie
fallen dann ganz heraus, statt ungefiltert mitzulaufen.

DIE ANTWORT NENNT DIE GESAMTZAHL: es werden
höchstens 100 Treffer geliefert. Gemessen gab es in einem Bestand 290
Treffer zu einer Anfrage -- wer die Liste für vollständig hält,
schließt daraus falsche Dinge.

    {treffer: [...], gesamt: 290, abgeschnitten: true, weiter: 100,
     hinweis: "100 von 290 Treffern. Weiter mit offset=100."}

`hinweis` steht ZUSAETZLICH zu den Zahlen und ist für den Agenten da, der
die Antwort liest, nicht ausrechnet. Er entsteht HIER und nicht im Kern: der
Kern liefert Zahlen, der Satz darüber ist Sache des Werkzeugs, das mit
einem Agenten spricht.

`offset` zum Blättern; `weiter` aus der vorigen Antwort ist genau der Wert,
der hier hineingehört. Ist `weiter` null, gibt es nichts mehr.

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": {
      "q": "<q>"
    },
    "name": "suche"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYes
alleNo
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).
limitNo
offsetNo
subjekt_idNo
persona_slugNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, yet the description still adds substantial behavioral detail: three hit types with per-type field meanings, the overloaded `sache` column carrying a document slug rather than a Sache, ended records remaining as hits but sorted last, subjekt_id silently dropping all documents, and a hard 100-hit cap where a 290-hit corpus is possible. These are exactly the traps that would cause an agent to misread results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and the per-type breakdown is scannable, but the text is padded with emphatic all-caps headings and internal design rationale — e.g. the aside that `hinweis` is composed in the tool rather than the core — which serves the author, not the calling agent. The `sache`-overloading explanation is justified but verbose.

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 7-parameter search with an output schema, the definition covers response shape, pagination contract and truncation semantics well enough to call it correctly. Remaining gaps are the undocumented `alle` flag and any hint about query matching semantics (tokenization, substring behavior).

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 14%, so the description must compensate, and it largely does: persona_slug, subjekt_id, offset/weiter and the effective limit are all explained. `q`, `alle` and `limit` receive no treatment, and `alle` in particular is left entirely opaque to the agent.

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?

Opens with a specific verb and resource set: 'Volltext über Aussagen + Ereignisse + Dokumente', and even names the endpoint (GET /suche?q=&subjekt_id=). The scope is unmistakable. It never names sibling search tools (memory_search, lehren_suche), so the agent must infer differentiation from the resource scope alone.

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?

Gives concrete operating conditions: persona_slug scopes the visibility field, subjekt_id excludes documents entirely, offset pages through results with weiter as the exact value to pass. It also routes the agent forward to dokument_get for document bodies. It stops short of saying when to prefer this over the other search tools.

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.