Skip to main content
Glama

Search Lessons

lehren_suche
Read-only

Lehren durchsuchen/filtern (GET /lehren?q=&art=&status=&bereich=&sichtfeld=&limit=).

Jüngste zuerst, nur laufende Lehren (`gilt_bis` null). `lesende_persona`
ist die eigene Persona-Kennung der lesenden Sitzung (aus deren
`persona_brief`) — gesendet als `sichtfeld=<slug>` (Muster
`memory_search`s `lesende_persona`: „zwei Fragen unter einem
Namen" vermeiden, `persona_slug` wäre hier doppeldeutig). Leer/nicht
gesetzt: kein Sichtfeld-Filter. Eigene Lehren dieser Persona bleiben
immer sichtbar, Firmen-Lehren (kein `bereich`) ebenso — die Sichtfeld-
Einschränkung gilt nur für fremde Lehren außerhalb des Bereichs
(Core-Logik, `spec/lehren.md` §2).

`zu_beurteilen=True` liefert stattdessen die Arbeitsliste
für einen durchgehenden Lauf: offene Lehren der Arten `fehler` und
`gelungen`, an denen KEINE unbeantwortete Klickfrage hängt,
**älteste zuerst**, höchstens 20. Nicht jüngste zuerst wie sonst --
bei einem gedeckelten Lauf käme ein Rückstand sonst nie an die
Reihe. `art`/`status` daneben sind ein Fehler (422 vom Kern): die
Liste setzt beide selbst.

Aus einer Lehre wird eine Regel ausschließlich über
`lehre_regel_vorschlagen` -- das stellt dem Menschen eine Klickfrage.
Das Werkzeug schreibt keine Regel selbst, und der Kern deckelt die
offenen Vorschläge (409, wenn schon drei beim Menschen liegen).

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

Input Schema

NameRequiredDescriptionDefault
qNo
artNo
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
statusNo
bereichNo
zu_beurteilenNo
lesende_personaNo

Output Schema

NameRequiredDescriptionDefault
resultYes

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?

Annotations already declare a safe read, yet the description adds substantial behavior beyond them: default ordering (newest first, only `gilt_bis` null), inverted ordering and a hard cap of 20 in work-list mode, exclusion of lessons with unanswered click questions, and the visibility rule that the sichtfeld restriction only applies to foreign lessons outside the Bereich. Error codes (422, 409) are disclosed too.

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 purpose and modes, and most sentences earn their place by encoding non-obvious behavior. Some of the parenthetical naming rationale ('zwei Fragen unter einem Namen' vermeiden, `persona_slug` wäre doppeldeutig) is meta-commentary that costs space without changing how the agent calls the tool.

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 an 8-parameter, dual-mode tool with an output schema, the description covers the parts that would otherwise cause wrong calls: mode switching, ordering, visibility scoping and error conditions. What remains thin is the value domain of the plain filter parameters (`q`, `art`, `status`, `bereich`, `limit`).

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 13%, so the description has to carry the load — it does so for the highest-risk parameters: `lesende_persona`/`sichtfeld` is explained thoroughly (including why it is not `persona_slug`) and `zu_beurteilen` is fully specified. `q`, `art`, `status`, `bereich` and `limit` appear only in the endpoint template without value/format semantics, leaving a partial gap.

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?

Opens with a specific verb+resource ('Lehren durchsuchen/filtern') and the underlying endpoint, then immediately separates the two operating modes (normal search vs. `zu_beurteilen=True` work list). It explicitly names the sibling that owns rule creation (`lehre_regel_vorschlagen`), so an agent can route between search and mutation without opening 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 explicit when-to-use guidance: `zu_beurteilen=True` is for a durchgehender Lauf work list, and combining it with `art`/`status` is an error (422). It also states the when-not for rule creation ('Aus einer Lehre wird eine Regel ausschließlich über `lehre_regel_vorschlagen`'), plus the 409 cap on open proposals.

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.