Skip to main content
Glama
MemoryHub
by hookmt

mem_deprecate

Marks an entry as superseded or historical without deleting it or changing its verification date; specify scope when an item ID exists in both shared and private stores.

Instructions

Oznacza wpis jako zastąpiony/historyczny bez fizycznego usuwania i bez fałszowania daty weryfikacji. Jeśli ten sam item_id istnieje w bazie shared i private, bez jawnego parametru scope operacja kończy się błędem niejednoznaczności.

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": {
      "item_id": "<item_id>"
    },
    "name": "mem_deprecate"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNoOpcjonalny zasięg bazy docelowej ('shared' lub 'private'). Wymagany przy kolizji ID w obu bazach.
item_idYesIdentyfikator wpisu do unieważnienia (np. 'mem-002').
superseded_byNoOpcjonalny identyfikator nowego wpisu, który zastąpił bieżący.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it discloses that nothing is physically removed, that the verification date is deliberately left untouched, and that an ambiguity error occurs on cross-database ID collision. It leaves out reversibility (can a deprecation be undone?) and whether the entry remains visible in mem_search_index, so it is strong rather than complete.

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?

Two sentences, front-loaded with the core action and its non-destructive guarantee, with no filler. The second sentence partly overlaps the scope parameter description in the schema, a small redundancy, but nothing is padded.

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 3-parameter mutation with no annotations and no output schema, the description covers purpose and one error mode but not what is returned, whether superseded_by is validated against an existing entry, or how a deprecated entry behaves in subsequent reads. Adequate to call correctly in the happy path, incomplete around side effects.

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

Parameters3/5

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

Schema coverage is 100% and the schema itself already documents all three parameters, including the scope collision rule, so the description mostly restates structured data. Its only increment is describing the consequence of omitting scope (an ambiguity error) rather than just the requirement, which is marginal at baseline 3.

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 concrete verb and resource ('Oznacza wpis jako zastąpiony/historyczny') and immediately draws the boundary against the destructive sibling by saying it happens 'bez fizycznego usuwania' — that contrast with mem_purge is explicit. An agent can distinguish this from mem_purge and mem_save without opening any schema.

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 condition for use (marking an entry as historical rather than deleting it) and a concrete failure scenario (ID collision across shared/private without scope). It never names an alternative sibling or an explicit when-not rule, so it falls short of a 5, but the implied routing away from mem_purge is readable.

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