Skip to main content
Glama

memory_forget_tool

Remove specific memories from Recall's long-term storage by ID or semantic search query, with protection for important rules unless explicitly overridden.

Instructions

Delete memories by ID or semantic search.

Golden rules (type=golden_rule or confidence >= 0.9) are protected from deletion unless force=True is specified.

Args: memory_id: Specific memory ID to delete (direct deletion mode). query: Search query to find memories to delete (search deletion mode). input: Smart parameter that auto-detects if value is an ID or query. namespace: Filter deletion to specific namespace (optional). n_results: Number of search results to delete in query mode (default: 5). confirm: If True, proceed with deletion (default: True). force: If True, allow deletion of golden rules (default: False).

Returns: Result dictionary with success status, deleted_ids, and deleted_count.

Note: If both memory_id and query are None but input is provided, the function auto-detects whether input is a memory ID or search query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
memory_idNo
queryNo
inputNo
namespaceNo
n_resultsNo
confirmNo
forceNo

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