Skip to main content
Glama

forget_memory

Remove a specific memory entry or clear all stored data using a key parameter. Specify 'ALL' to wipe the entire memory store.

Instructions

Remove one or all items from persistent memory.

If the input key is "ALL", the entire memory store is cleared. Otherwise, only the specified key will be removed if it exists.

Args: input_data (Dict[str, Any]): A dictionary containing a single key "key" that specifies which memory entry to remove, or "ALL" to clear all entries.

Returns: Dict[str, Any]: A result dictionary indicating success, failure, or whether the requested key was not found.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
input_dataYes
Behavior5/5

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

With no annotations, the description fully covers behavior: it explains removal logic, the 'ALL' special case, and the return dictionary covering success, failure, or key not found.

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

Conciseness5/5

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

The description is well-structured, front-loaded with the core purpose, followed by clear Args and Returns sections. Every sentence adds value without redundancy.

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 no output schema, the description fully documents the return format. The input is thoroughly explained. The tool is simple, and the description covers all necessary aspects for correct use.

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?

The schema is minimal (object with additionalProperties). The description adds crucial meaning: the required 'key' field and the special 'ALL' value. Without this, the agent would not know how to structure the input.

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 explicitly states the tool removes items from persistent memory, distinguishing 'one' from 'all' with the special key 'ALL'. This clearly differentiates it from siblings like store_memory and retrieve_memory.

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 usage is clear: remove one or all memory entries. However, it does not explicitly contrast with alternatives or provide when-not-to-use guidance, though the sibling context implicitly aids selection.

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/elcaiseri/mcp-ai-agent-server'

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