Skip to main content
Glama

Correct Lesson

lehre_korrigieren
Destructive

Eine bestehende Lehre korrigieren — Bereich und/oder Wortlaut (PATCH /lehren/{id}).

Warum es das gibt: sonst könnte eine Lehre nach dem Anlegen nur BEENDET
werden, nicht korrigiert. Wer einen falschen Bereich gesetzt oder sich im
Wortlaut vergriffen hat, braucht einen Weg zurück — zusammen mit der
Bereichspflicht bei `lehre_put` wäre das sonst eine Falle.

Änderbar sind `bereich`, `titel`, `was`, `lehre` -- mindestens eines
davon muss gesetzt sein. NICHT änderbar, und zwar bewusst: `art`,
`ursache`, `belege`, `status`, `persona_slug`. Eine Korrektur schärft
den Wortlaut und ordnet ein; sie macht aus einem Fehler keine gelungene
Sache und aus fremder Erfahrung nicht die eigene. Wer das will, schreibt
eine neue Lehre -- gelöscht wird nicht.

ZWEI GRENZEN, beide aus dem ersten echten Gebrauch:
1. WER `lehre` KORRIGIERT, SCHICKT DEN GANZEN TEXT. Die Korrektur
   ERSETZT das Feld, sie ergänzt es nicht -- wer nur den geänderten
   Absatz sendet, verliert den Rest.
2. `ursache` ist NICHT änderbar, auch nicht über diesen Weg. Steht der
   Grund der Korrektur gerade dort (etwa ein Begriff, der getilgt werden
   soll), kann die Korrektur ihre Aufgabe nicht zu Ende bringen -- dann
   braucht es eine NEUE Lehre mit `ersetzt`, nicht eine Korrektur.

`grund` ist ein optionaler Freitext für die Nachwelt; er ändert nichts
an der Lehre.

Die Spur des Anlegens bleibt unverändert stehen (`compass_urheber`);
die Korrektur wird DANEBEN eingetragen, nicht darüber.

403, wenn der Aufrufer nicht der belegte Ersteller ist -- belegt heißt
hier über die Urheber-Spur (`schluessel_id`/`benutzer_id`), nicht über
das Freitextfeld `angelegt_von`, das der Aufrufer selbst setzt. 404 bei
unbekannter id, 409 bei einer bereits beendeten Lehre, 422 bei leerem
Feld oder unbekanntem Bereich -- alles unverändert durchgereicht.

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": {
      "id": "<id>"
    },
    "name": "lehre_korrigieren"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
wasNo
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).
grundNo
lehreNo
titelNo
bereichNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and destructiveHint=true; the description goes well beyond them by warning that editing `lehre` REPLACES the field wholesale (partial text loses the rest), that the correction is recorded alongside the untouched `compass_urheber` trail, and by spelling out 403/404/409/422 conditions including that authorship is checked via `schluessel_id`/`benutzer_id` rather than the self-set `angelegt_von` field. That is substantial context beyond the annotations, so it rates a 3 rather than the lower baseline – the remaining gap is that it doesn't describe the response shape, which the output schema covers.

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 verb, resource and endpoint are front-loaded, and the numbered 'ZWEI GRENZEN' block surfaces the two real failure modes clearly. The 'Warum es das gibt' paragraph is design rationale rather than operational guidance and edges toward verbosity, but the rest of the text is dense with actionable content.

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 destructive mutation with rich error semantics and 7 parameters, the description covers mutability boundaries, the replace-not-merge hazard, ownership-based authorization, and all relevant HTTP failure codes; return values are handled by the output schema. Nothing an agent needs in order to call this correctly is missing.

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?

With only 14% schema description coverage, the description must carry the load, and it does: it lists the four mutable fields, imposes the 'at least one must be set' constraint the schema does not express, explains `grund` as inert free text for posterity, and warns about the destructive replace semantics of `lehre`. Only `id` (implied by the 404 note) and `chat` (documented in the schema itself) are not elaborated, which keeps it just short of a 5.

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 description names a specific verb and resource ('Eine bestehende Lehre korrigieren', PATCH /lehren/{id}) and enumerates exactly which fields are in scope (bereich, titel, was, lehre). It explicitly distinguishes itself from `lehre_put` (creation with mandatory Bereich) and from writing a new lesson, so the agent can tell the siblings apart without opening their schemas.

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?

It gives explicit when-to-use ('falscher Bereich gesetzt oder im Wortlaut vergriffen') and explicit when-NOT-to-use cases: `ursache` cannot be changed even here, so the agent must instead write a new lesson with `ersetzt`; deletion is not available at all. The alternative path is named with the condition that selects it, leaving nothing to inference.

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.