Skip to main content
Glama

Correct Memory

memory_korrigieren
Destructive

Einen bestehenden Gedächtnis-Eintrag umhängen, beenden oder dem Fachbereich teilen (PATCH /gedaechtnis/{id} bzw. POST /gedaechtnis/{id}/teilen).

Für Einträge, die schon da sind: statt einen zweiten anzulegen, wird der vorhandene korrigiert. Gelöscht wird nie.

`bereich`: der Fachbereich (`bereich_list`, den feinsten passenden); unbekannt → 422. Ändert NUR den Bereich, der Eintrag gilt weiter.
`gilt_bis`: Zeitpunkt (ISO 8601), ab dem der Eintrag nicht mehr gilt, oder `"jetzt"`. So wird ein überholter Eintrag beendet; er bleibt lesbar.
Mindestens eines von beiden, sonst ein Fehler ohne Aufruf.

`teilen=True`: ein EIGENER Eintrag gehört danach dem Fachbereich (`bereich` oder der, den er schon trägt), jede Persona mit diesem Bereich im
Sichtfeld liest ihn; der Autor bleibt in `herkunft`, der Wechsel steht im Verlauf. Nur zusammen mit `bereich`, nicht mit `gilt_bis`.
409, wenn der Eintrag schon geteilt oder beendet ist.

Wer darf: die Besitzerin des Eintrags, die Leitung, ein Mensch, der Lotse; sonst 403 (der Kern prüft). Unbekannte `id` → 404.
Rückgabe: der Eintrag nach der Änderung.

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

Input Schema

NameRequiredDescriptionDefault
idYes
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).
teilenNo
bereichNo
gilt_bisNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, and the description goes well beyond them: exact status codes (422, 403, 404, 409), the authorization roles that pass the core check, what changes vs. what persists ('der Autor bleibt in herkunft, der Wechsel steht im Verlauf'), and the return value. The only friction is that 'Gelöscht wird nie' and 'er bleibt lesbar' downplay the destructiveHint framing — not a contradiction, since reassigning bereich and sharing are irreversible scope changes, but it slightly softens the risk signal.

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 endpoint, then structured by parameter. Dense but every sentence carries information; minor cost from awkward mid-sentence line wrapping and inconsistent backtick markup, which slightly hurt scannability without adding waste.

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 mutation tool with five parameters, partial schema coverage, and an output schema, the description covers preconditions, permission model, error codes, side effects and return shape. Nothing an agent needs in order to call it correctly — or to avoid calling it — is missing.

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 20%, yet the description compensates for nearly every gap: bereich must come from bereich_list ('den feinsten passenden'), unknown value yields 422 and only the area changes; gilt_bis is ISO 8601 or the literal 'jetzt' and ends but does not hide the entry; teilen reparents ownership to the Fachbereich with the stated constraints; id 404s when unknown. This is meaning the schema alone does not convey.

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?

Names a specific verb and resource in the very first line ('bestehenden Gedächtnis-Eintrag umhängen, beenden oder dem Fachbereich teilen') and pins the endpoints. It explicitly differentiates from the create path ('statt einen zweiten anzulegen, wird der vorhandene korrigiert'), which separates it from memory_put without needing the sibling's 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 concrete when-to-use framing ('Für Einträge, die schon da sind') and hard preconditions: at least one of bereich/gilt_bis or 'ein Fehler ohne Aufruf', and teilen only together with bereich and never with gilt_bis. It also states the 409 case for already-shared or already-ended entries, so the agent knows when not to call.

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.