Skip to main content
Glama

Reject Lesson

lehre_verwerfen
Destructive

Eine Lehre gilt nicht mehr (POST /lehren/{id}/verwerfen) -- und bleibt lesbar.

DER DRITTE ZUSTAND. `lehre_aufnehmen` heißt „behalten",
`lehre_regel_vorschlagen` heißt „soll gelten". Für „stimmt nicht mehr"
oder „eine geltende Regel deckt das schon ab" gab es bisher kein Verb --
und deshalb blieben genau diese Lehren auf `offen` stehen und ließen den
Rückstand nach Arbeit aussehen, die noch kommt.

`grund` IST PFLICHT UND HAT KEINEN RUECKFALL-WERT. Eine verworfene Lehre
ohne Satz, warum, ist ein Papierkorb mit Zeitstempel. Der Core lehnt einen
leeren Grund mit 422 ab.

`deckt_regel_id` zeigt auf die geltende Regel, die die Lehre abdeckt --
nur wenn es eine gibt; sie muss `art='regel'` sein (sonst 422).

GELOESCHT WIRD NICHT: die Lehre bleibt über `lehren_suche` und
`GET /lehren/{id}` sichtbar, mit Zustand, Grund und Datum.

409, wenn sie schon verworfen ist -- oder wenn aus ihr eine Regel
geworden ist: dann nimmt man die REGEL zurück, nicht die Lehre.

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>",
      "grund": "<grund>",
      "von": "<von>"
    },
    "name": "lehre_verwerfen"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
vonYes
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).
grundYes
deckt_regel_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only say destructiveHint=true; the description adds the crucial nuance that nothing is deleted and the lesson stays readable via lehren_suche / GET, plus the 422 conditions (empty grund, non-regel deckt_regel_id) and the 409 conditions. This is substantial behavior beyond the annotation and does not contradict it, since rejection still removes the lesson from the active state.

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 one-line summary followed by short labeled sections; each section adds distinct information (state model, error codes, persistence). Some emphasis styling and repetition of the endpoint, but nothing that should be cut.

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?

With an output schema present, the description need not explain return values, and it covers everything else an agent needs: the state semantics, mandatory parameter behavior, error codes, and post-call visibility. Nothing material is missing for a mutation tool of this complexity.

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 20% (only 'chat' documented), so the description carries the load: it explains that grund is mandatory with no fallback and rejected when empty, and that deckt_regel_id must reference a rule (art='regel'). Only id and von remain undocumented, so it largely compensates for the coverage 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?

States the concrete verb and resource ('Eine Lehre gilt nicht mehr', POST /lehren/{id}/verwerfen) and immediately distinguishes it from lehre_aufnehmen ('behalten') and lehre_regel_vorschlagen ('soll gelten'). An agent can pick the right tool from the description alone.

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?

Explicitly names the two sibling verbs and the situations that select this one ('stimmt nicht mehr', 'eine geltende Regel deckt das schon ab'), plus the 409 case where the correct action is retracting the rule instead. Clear when-to-use and when-not-to-use routing.

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.