Skip to main content
Glama

Memoria — Deterministic AI Memory & Code Intelligence MCP

Forget Memory

forget_memory
DestructiveIdempotent

Permanently delete one memory and its incident graph edges by ID (destructive, idempotent; consumes 1 Write API call) and return { deleted }. Enforces organization ownership (returns JSON-RPC error -32003 on foreign IDs) and returns { deleted: false } when the ID is already absent. Use when removing a single known memory ID; use delete_by_context instead to bulk-delete memories by [key, value] metadata tag, or feedback (useful=false) to lower salience without deleting.

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": {
      "id": "<id>"
    },
    "name": "forget_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesExact memory UUID returned by encode_memory or recall_memories.

Output Schema

NameRequiredDescriptionDefault
deletedYesTrue if an existing memory was removed, false if already absent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"Unique memory ID to delete."New value: +"Exact memory UUID returned by encode_memory or recall_memories."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "deleted": {
      +      "description": "True if an existing memory was removed, false if already absent.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "deleted"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (destructive/idempotent) by disclosing quota cost (1 Write API call), the exact ownership-enforcement failure mode (JSON-RPC error -32003 on foreign IDs), and the idempotent behavior of returning { deleted: false } for already-absent IDs rather than erroring.

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 action and its consequence, and every clause carries information (cost, error code, absent-ID behavior, alternatives). The parenthetical stack ("destructive, idempotent; consumes 1 Write API call") is dense but not wasteful.

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 single-parameter destructive tool with an output schema already present, the description covers cost, failure mode, idempotency result, and sibling routing. An agent has everything needed to invoke it correctly and interpret errors.

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 already explains the id must be an "Exact memory UUID returned by encode_memory or recall_memories". The description only restates the ID-based targeting, adding no new syntax or format detail beyond what the schema provides.

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 with explicit scope: "Permanently delete one memory and its incident graph edges by ID". The singular scope plus the incidental-edge cascade distinguishes it from delete_by_context without needing the sibling 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 ("removing a single known memory ID") and two named alternatives with the condition selecting each: delete_by_context for bulk deletes by [key, value] metadata tag, and feedback(useful=false) for salience reduction without deletion.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.