Skip to main content
Glama

Correct episodic memory

dm.supersede_episodic_memory
Destructive

Replace a previously-captured episodic memory record with a corrected one. The old record is preserved (never deleted) and marked superseded, linked to the new record; recall (dm.memory_search/list) excludes superseded records by default so agents see current, applicable memory instead of an unlinked duplicate sitting beside outdated content.

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": {
      "old_record_id": "<old_record_id>",
      "task_reference": "<task_reference>",
      "content": "<content>"
    },
    "name": "dm.supersede_episodic_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNoagent_task
contentYes
metadataNo
thread_idNo
project_idNo
scope_kindNopersonal
session_idNo
old_record_idYes
task_referenceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and non-idempotent, so the safety profile is covered; the description adds genuinely new behavior beyond that: the old record is preserved and marked superseded rather than deleted, the two records are linked, and recall excludes superseded records by default. It never explains how to undo a supersede or what the response contains, which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences, front-loaded with the operation and then the retention/linkage consequence. No filler and no restatement of the title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter mutation with no output schema and no schema descriptions, the definition covers only the core effect. An agent still has no guidance on the scoping parameters (project_id, thread_id, session_id, scope_kind) that determine where the replacement is recorded, nor on what the call returns.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 9 parameters, including a nested metadata object and a scope_kind enum, and the description names none of them. It does not clarify old_record_id versus the new content, what source/task_reference mean, or how scope_kind changes behavior, so it fails to compensate 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?

The description states a specific verb and resource: 'Replace a previously-captured episodic memory record with a corrected one.' It distinguishes itself from the capture path by making the operation a supersede rather than a new write, and it names the read tools (dm.memory_search/list) affected by the change.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear when-to-use condition ('replace a previously-captured record with a corrected one') and a motivating rationale (avoiding an unlinked duplicate beside outdated content). It does not explicitly say when to prefer capture_episodic_memory instead, which is the obvious adjacent choice.

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.

Resources