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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries full burden and does well by explaining the destructive nature ('Delete'), outlining three deletion modes with their behaviors, specifying optional filtering parameters, and detailing the return structure. It doesn't mention authentication needs, rate limits, or error conditions beyond the 'error' field, but covers core behavioral aspects adequately.

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 description is well-structured with clear sections (overview, modes, args, returns, examples) and front-loads the core purpose. While comprehensive, some sentences in the parameter explanations could be slightly more concise, but overall it's efficient with minimal waste.

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?

Given the tool's complexity (multiple deletion modes, 6 parameters), no annotations, and the presence of an output schema, the description is remarkably complete. It explains the tool's purpose, usage patterns, all parameters with semantics, and the return structure, leaving little ambiguity for an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage and 6 parameters, the description fully compensates by explaining each parameter's purpose, mapping them to deletion modes, listing valid relation values, and providing default values. The examples further clarify parameter usage, adding significant value beyond the bare schema.

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 description clearly states the specific action ('Delete edges between memories') and distinguishes this tool from siblings like 'memory_forget_tool' (which likely deletes memories themselves rather than edges). The verb 'delete' is precise and the resource 'edges (relationships) between memories' is well-defined.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

The description provides clear context about three deletion modes, which implicitly guides when to use each approach. However, it doesn't explicitly state when to choose this tool over alternatives like 'memory_forget_tool' or 'memory_relate_tool', nor does it mention prerequisites or exclusions.

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

Install Server

Other Tools

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