Skip to main content
Glama
MemoryHub
by hookmt

mem_purge

Permanently deletes a memory entry by item_id from SQLite and the FTS5 index; specify scope to resolve ID collisions between shared and private stores.

Instructions

Usuwa wpis z tabeli SQLite (secure_delete włączone) oraz indeksu FTS5. Nie gwarantuje wyczyszczenia struktur cieni FTS, nieskonsolidowanego WAL ani zewnętrznych kopii/migawek. 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_purge"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNoOpcjonalny zasięg bazy docelowej ('shared' lub 'private'). Wymagany przy kolizji ID w obu bazach.
item_idYesIdentyfikator wpisu do fizycznego skasowania.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does real work: it discloses that secure_delete is on, that FTS shadow structures, unconsolidated WAL and external copies/snapshots are NOT guaranteed wiped, and that an ambiguous ID across both databases produces an error. Those are exactly the surprises an agent needs to know before a destructive call. It still omits permissions/authorization needs and any statement about what a successful call returns.

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?

Three sentences, each earning its place: what it does, what it does not guarantee, and the failure mode. The purpose is front-loaded and the caveats follow in descending order of importance, with no filler.

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

Completeness4/5

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

For a two-parameter destructive tool with no annotations and no output schema, the description covers purpose, irreversible-physical semantics, partial-erasure caveats, and the ambiguity error path. What is missing is modest: expected return/confirmation behavior and whether any permission is required.

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%, so the schema already documents both parameters, including the scope collision rule. The description restates the same collision condition and adds 'fizyczne' to item_id's meaning, but adds no new syntax, format, or edge-case detail beyond the schema. Baseline 3 is correct when the schema does the heavy lifting.

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 states a specific verb and resource: it physically deletes an entry from the SQLite table (with secure_delete enabled) and from the FTS5 index. That is precise and leaves no doubt about the operation. It never names or contrasts with the sibling mem_deprecate (likely the soft-delete path), so the sibling differentiation is missing.

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?

Usage is only implied: 'fizycznego skasowania' signals a hard purge rather than the deprecation route that mem_deprecate probably offers, but the description never says when to prefer this over that. The one explicit rule it does give is conditional (scope is required when item_id collides across shared and private), which is useful but is a precondition, not routing guidance.

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