Skip to main content
Glama

Delete a memory

rhebok_delete_memory
DestructiveIdempotent

Deletes one saved memory by ID when it is wrong or no longer applies, so outdated lessons, facts, or episodes stop appearing.

Instructions

Delete one saved memory (a lesson, fact or episode) by its id.

Use it when the user says a memory is wrong or no longer applies. To correct a memory instead, save the new wording with rhebok_save_memory, which replaces the near-duplicate. To find an id, use rhebok_list_memories.

Parameters: id is usually 12 hex characters, such as c6f771fc1a36; an episode distilled from a session has that session's id instead. A shorter prefix works when exactly one memory starts with it, so c6f7 can be enough; a prefix that matches two memories deletes nothing.

Behavior: there is no undo. The memory leaves session-start lessons and prompt retrieval at once, and restoring it means saving it again. It touches only rhebok's memory store, never the user's notes or files, so it cannot remove a search hit.

Returns: forgotten with the deleted memory's id, kind and title. An id that matches nothing deletes nothing and says so in reason.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe memory's id, as shown in <rhebok-lessons>, in a (memory: …) line, or in rhebok_save_memory's reply. A unique prefix is enough; a prefix that matches two memories is refused.

Output Schema

NameRequiredDescriptionDefault
idYesThe full id of the deleted memory.
kindYesThe deleted memory's kind.
titleYesThe deleted memory's title.
reasonYesWhy nothing was deleted: no memory has that id, the prefix matches more than one, or the memory store is disabled or busy.
forgottenYesTrue when a memory was deleted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.4

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructive=true, readOnly=false and idempotent=true, yet the description adds materially new behavior: there is no undo, the memory disappears from session-start lessons and prompt retrieval immediately, restoring requires re-saving, and it only affects rhebok's store and never user notes, files, or search hits. Those are exactly the side-effect boundaries an agent needs before a destructive call.

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 the action and trigger, then cleanly sectioned into Parameters, Behavior and Returns, with each sentence carrying useful information. The Returns section is partly redundant given an output schema exists, which keeps it from a 5.

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 single-parameter destructive tool with annotations and an output schema, nothing consequential is missing: id format, ambiguity handling, irreversibility, blast radius, and the forgotten/reason return fields are all covered.

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 100% and the schema already explains the unique-prefix rule, but the description adds real meaning: the typical 12-hex-character format with a concrete example, the episode-inherits-session-id exception, and the consequence that an ambiguous prefix deletes nothing. It stops short of covering only trivial detail, so a 4 rather than 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?

States a specific verb and resource ("Delete one saved memory ... by its id") and immediately scopes what a memory is (lesson, fact or episode). It is clearly distinguishable from rhebok_save_memory and rhebok_list_memories, which are named in the same paragraph.

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 an explicit trigger ("when the user says a memory is wrong or no longer applies") plus two named alternatives with the condition that selects each: save_memory for correction, list_memories for discovering an id. No exclusions are left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.