Skip to main content
Glama
FocalMem MCP Server

FocalMem MCP Server

by kannazuki114

memory_supersede

Retire outdated or incorrect memories by linking them to a causal replacement and removing them from default retrieval.

Instructions

主动遗忘阀:废止过时/错误的旧方案并建立因果替代链,立即将其踢出默认检索。

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_memory_id": "<old_memory_id>",
      "new_title": "<new_title>",
      "new_content": "<new_content>"
    },
    "name": "memory_supersede"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNo
end_lineNo
file_pathNo
new_titleYes
start_lineNo
new_contentYes
old_memory_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full load. It does disclose meaningful behavior beyond the name: a successor chain is built and the old entry is removed from default retrieval rather than necessarily destroyed, which is important to know before calling a mutating tool. It omits reversibility, whether the old record is retained at all, authorization needs, and what the file_path/line-range fields do to the record.

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?

A single front-loaded sentence that leads with the effect and then the mechanism and consequence. The '主动遗忘阀' metaphor is slightly decorative but costs few tokens. Nothing is redundant.

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

Completeness3/5

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

For a 7-parameter mutation with no annotations and no output schema, the definition covers the core effect but leaves the largest unknowns (line-range scoping, reason semantics, whether the old entry survives) unaddressed. It is adequate to know roughly when to call, not adequate to call confidently.

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 7 parameters, so the description must compensate and does not: old_memory_id, new_title, new_content, reason, and especially the file_path/start_line/end_line triple are entirely unexplained. An agent cannot tell whether supplying a file path scopes the supersession to a code region or is metadata, which is a real risk of misuse.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific operation — deprecating outdated/wrong prior memory entries and replacing them via a causal successor link — plus a concrete consequence ('立即将其踢出默认检索'). That is more than a restatement of 'supersede'. It does not, however, distinguish itself from the sibling memory_resolve_conflict, so an agent cannot tell from the text alone which of the two handles stale-vs-contradictory memories.

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

Usage Guidelines3/5

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

The trigger condition is implied ('过时/错误'), which tells the agent this is for invalidated rather than merely related memories. There is no explicit when-not guidance and no naming of memory_commit or memory_resolve_conflict as alternatives for near-miss cases, so the boundary with siblings stays inferred.

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