Skip to main content
Glama

memory_edge_forget_tool

Remove relationships between stored memories by deleting specific edges, all connections from a memory, or links between two memories to manage memory associations.

Instructions

Delete edges (relationships) between memories.

Supports three deletion modes:

  1. Direct ID: Delete a specific edge by its ID

  2. Memory-based: Delete all edges connected to a memory

  3. Pair: Delete edge(s) between two specific memories

Args: edge_id: Specific edge ID to delete (direct deletion mode) memory_id: Memory ID to delete all connected edges (memory-based mode) source_id: Source memory ID for pair deletion mode target_id: Target memory ID for pair deletion mode relation: Filter by relation type (optional). Valid: relates_to, supersedes, caused_by, contradicts direction: For memory_id mode: 'outgoing', 'incoming', or 'both' (default: 'both')

Returns: Result dictionary with: - success: Boolean indicating operation success - deleted_ids: List of edge IDs that were deleted - deleted_count: Number of edges deleted - error: Error message (if failed)

Examples: Delete by edge ID: edge_id=42 Delete all edges for memory: memory_id="mem_123" Delete specific relation: source_id="mem_123", target_id="mem_456", relation="contradicts"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
edge_idNo
memory_idNo
source_idNo
target_idNo
relationNo
directionNoboth

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/blueman82/recall'

If you have feedback or need assistance with the MCP directory API, please join our Discord server