Skip to main content
Glama

purge_memory

DestructiveIdempotent

Permanently delete a memory with its edit history and relations only when explicit irreversible removal is required; use forget() for reversible archiving.

Instructions

PERMANENTLY delete a memory + its edit history + relations. Irreversible.

Use forget() instead unless the user explicitly asked to permanently remove data -- forget() is reversible (archived, content kept), this is not.

Input Schema

NameRequiredDescriptionDefault
uidYesthe memory.
confirm_phraseYesmust exactly equal "DELETE <uid>", typed by the user in their own message. Do not construct this string yourself from an inferred "yes"/"confirm" -- it must come from the user actually stating the uid back.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.16.1
    • addedInput schema / properties / confirm_phrase / description
      Added value: +"must exactly equal \"DELETE <uid>\", typed by the user in their own message. Do not construct this string yourself from an inferred \"yes\"/\"confirm\" -- it must come from the user actually stating the uid back."
    • removedInput schema / properties / confirm_phrase / title
      Removed value: -"Confirm Phrase"
    • addedInput schema / properties / uid / description
      Added value: +"the memory."
    • removedInput schema / properties / uid / title
      Removed value: -"Uid"
    • removedInput schema / title
      Removed value: -"purge_memoryArguments"
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the destructive nature is covered. The description adds genuine value beyond that: the destruction scope (edit history and relations), irreversibility, and the contrast with forget()'s reversible archive model. It does not surface the confirm_phrase user-typing guard, which is a meaningful behavioral requirement, so it stops short of 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 short sentences, front-loaded with the PERMANENTLY/irreversible warning, then the routing rule. Every clause earns its place and there is no filler.

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 a destructive two-parameter tool with full annotations and full schema coverage, the description supplies the critical context: what is destroyed, that it is irreversible, and when to prefer the reversible alternative. Nothing an agent needs to call it safely is missing.

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 both parameters (uid and confirm_phrase) are fully documented in the schema, including the exact confirm_phrase construction rule. The description adds no parameter-level detail beyond what the schema already provides, so the baseline 3 is appropriate.

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?

States a specific verb and resource ('PERMANENTLY delete a memory') and immediately scopes what is removed ('+ its edit history + relations'). It explicitly distinguishes itself from the sibling forget(), so an agent can route correctly without opening either schema.

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?

Gives an explicit when-to-use rule: prefer forget() 'unless the user explicitly asked to permanently remove data'. It names the alternative and the exact condition that selects this tool over it, leaving nothing to inference.

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