Skip to main content
Glama
@memoryrelay/mcp-server

@memoryrelay/mcp-server

Official
by memoryrelay

memory_forget

Delete a stored memory by ID, or search by query to find candidates before removal. Use it to clear obsolete AI agent memories and keep context accurate.

Instructions

Delete a memory by ID, or search by query to find candidates. Alias for memory_delete. Provide memoryId for direct deletion, or query to search first.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "memory_forget"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoSearch query to find memory
memoryIdNoMemory ID to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden for a destructive operation, yet it never says deletions are irreversible, whether confirmation is required, or what the response looks like. Critically, it leaves unresolved whether supplying query merely returns candidates or actually deletes matches, which is the single most important behavioral fact here.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with no padding, and the alias disclosure is front-loaded enough to be useful. However, the first and third sentences substantially duplicate each other (delete by ID / provide memoryId for direct deletion), so one of them does not earn its place.

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

Completeness2/5

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

Two optional parameters, no annotations, and no output schema mean the description must explain outcome and safety on its own, and it does not: the result of the query path, the result shape, and the effect of supplying both parameters are all unstated. For a destructive tool with zero structured safety metadata, this is a meaningful gap.

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 100% and the schema already labels query as "Search query to find memory" and memoryId as "Memory ID to delete." The description's parameter sentences restate those meanings with a workflow hint (search first, then delete) but add no format, constraint, or interaction semantics, so baseline 3 applies.

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?

States a specific verb and resource ("Delete a memory by ID") and explicitly positions itself against a sibling by declaring "Alias for memory_delete," so an agent knows the two are interchangeable. It stops short of a 5 because the query branch is described ambiguously as "find candidates" rather than saying what the tool actually does with them.

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 driven by parameter choice: memoryId for direct deletion, query for a search pass. That is a usable branching hint, but there is no guidance on which path to prefer when an agent is unsure of the ID, no statement about what happens if both or neither parameter is supplied, and no explicit when-not-to-use note.

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