Skip to main content
Glama

delete_memory

Deletes a specific memory entry by ID from local or global workspace memory and removes its index and graph links, keeping stored context accurate.

Instructions

Deletes a specific memory entry by ID from the workspace or global Memory Vault and removes its index/graph links.

Args: memory_id: The ID of the memory entry to delete (e.g. 'mem_a1b2c3d4'). workspace_dir: Workspace root directory. Empty = engine.default_workspace from the config, else the server's current directory. scope: Lookup scope ('local', 'global', or 'all'). Default is 'local'.

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": {
      "memory_id": "<memory_id>"
    },
    "name": "delete_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNolocal
memory_idYes
workspace_dirNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.2

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose a real side effect beyond the parameters — that index entries and graph links are removed — which is genuinely useful. However, it omits whether deletion is permanent/irreversible, what happens to dangling backlinks, and whether any permission or confirmation is required for a destructive mutation.

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?

The purpose and side effect are front-loaded in a single clear sentence, followed by a compact Args block that maps one-to-one onto the parameters. Nothing is redundant, though the Args formatting is slightly verbose relative to the very short behavior it documents.

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?

An output schema exists, so return values need not be described. For a destructive, unannotated, three-parameter mutation tool, the definition covers identification, scoping, and a side effect, but leaves reversibility, failure modes (missing ID, wrong scope), and any safety expectations unaddressed.

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 description coverage is 0% and the schema declares no enums, so the description is the only source of parameter meaning. It supplies the ID format example ('mem_a1b2c3d4'), the empty-string fallback resolution for workspace_dir, and the valid scope values ('local', 'global', 'all') plus their default — meaningful additions the schema lacks. It still leaves the practical difference between 'local', 'global', and 'all' for a delete operation unexplained, so it is solid but not exhaustive.

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 first sentence names a specific verb (deletes) and resource (a memory entry by ID), states the scope of the store (workspace or global Memory Vault), and adds the side effect of removing index/graph links. This is distinguishable from siblings like save_memory, read_memory, or patch_memory_section 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 Guidelines3/5

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

Usage is only implied: an agent can infer this is the tool for removing a memory entry, and the scope parameter hints at local vs global lookup. There is no explicit when-to-use versus when-not guidance, no mention of patch_memory_section as the non-destructive alternative for editing, and no prerequisites such as confirmation before an irreversible delete.

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