Skip to main content
Glama

memory_supersede

Destructive

Archive one or many thoughts or merge one thought into another while transferring its edges, without permanent deletion. Actions preview by default; confirm to execute after revalidation.

Instructions

Retire a thought without deleting it: archive one, archive a batch, or merge one thought onto another and transfer its edges. Reading is memory_recall, creating and linking memory_store, permanent removal retention_review. Actions: archive (idempotent), archive_batch (one row per requested occurrence), merge (source→target, reports edges_transferred). All actions preview by default and set meta.preview={token,destructive:true}; confirm=true executes after revalidating state. Answers { item, meta } for archive and merge, { items, meta } for archive_batch with the aggregate in meta.counts.archived/failed.

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": {
      "action": "<action>"
    },
    "name": "memory_supersede"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory — resolves the project scope the answer reports in meta.scope; a "merge" changes no thought's project. OPTIONAL for "merge". ACCEPTED AND IGNORED for "archive" and "archive_batch".
actionYesAction
confirmNoCONSUMED by all actions (true executes; false/omitted previews).
source_idNoREQUIRED ONLY for "merge". Source thought ID — will be archived. Rejected for other actions.
target_idNoREQUIRED ONLY for "merge". Target thought ID — will be updated. Rejected for other actions.
project_idNoRemoved; there is no project argument.
thought_idNoREQUIRED for "archive". Thought ID. REJECTED for "archive_batch" and "merge".
merged_tagsNoMerged tags. OPTIONAL for "merge". REJECTED for "archive" and "archive_batch".
thought_idsNoREQUIRED ONLY for "archive_batch". Thought IDs to archive in one call (1-1000); partial failures are reported per item. Rejected for other actions.
preview_tokenNoOPTIONAL preview token returned by a prior preview. CONSUMED by "archive", "archive_batch", "merge" (true executes with token validation; missing/stale fails). REJECTED for all other actions.
merged_contentNoReplacement content for merge. OPTIONAL for "merge". REJECTED for "archive" and "archive_batch".

Output Schema

NameRequiredDescriptionDefault
resultYesAction payload (structuredContent.result); JSON mirror of content[].text, except the raw-text config action, whose result is { item: { text }, meta }

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only give the blunt tool-level profile (destructive, non-read-only, non-idempotent); the description adds the operational detail an agent actually needs: preview-by-default with meta.preview={token,destructive:true}, confirm=true executing only after state revalidation, and per-item partial-failure reporting. The statement that archive is idempotent refines rather than contradicts the conservative tool-level idempotentHint=false, which must hold for both archive_batch and merge.

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 routing before the mechanical details, and nearly every clause carries distinct information. It is dense to the point of compression in places ("merge (source→target, reports edges_transferred)"), which is efficient but asks the reader to parse shorthand.

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 an 11-parameter, three-action destructive tool, it covers the gaps that matter: which action is required, what preview means, what gets destroyed, and how failures surface. Return shapes are restated briefly even though an output schema exists, which is redundant but harmless and aids scanning.

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%, so the baseline is 3; the description earns a bump by explaining the preview/confirm workflow that ties confirm and preview_token together — something the schema lists per-parameter but never narrates as a two-step protocol. It also states what merge reports (edges_transferred) and how archive_batch aggregates, adding meaning about outcomes rather than new syntax.

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?

Opens with a specific verb and resource plus its defining constraint: "Retire a thought without deleting it," then enumerates the three concrete modes (archive, archive_batch, merge with edge transfer). It explicitly distinguishes itself from three siblings by function: memory_recall for reading, memory_store for creating/linking, retention_review for permanent removal.

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?

Routing is explicit and bidirectional: it names the alternatives and the condition that selects them (reading, creating/linking, permanent removal). The per-action list with parenthetical behavior notes (archive idempotent, archive_batch one row per occurrence, merge source→target) tells an agent which action to pick within the tool as well.

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