Skip to main content
Glama

Delete all memories in scope

delete_all_memories
DestructiveIdempotent

Delete all memories within a specified user, agent, or run scope. Requires an explicit ID to ensure only the intended data is removed.

Instructions

Delete every memory in the given scope. Destructive: requires an explicit user_id, agent_id, or run_id — the default user is never assumed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idNoRun scope to wipe.
user_idNoUser scope to wipe.
agent_idNoAgent scope to wipe.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description reinforces this by labeling the operation 'Destructive'. It adds the behavioral nuance that a scope identifier is mandatory and the default user is never assumed, which is valuable safety context beyond the structured hints.

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?

Two short sentences with all key information front-loaded. No fluff or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the annotations cover destructive/idempotent behavior and an output schema exists, the description sufficiently covers the bulk deletion action and the main usage caveat. It doesn't specify precedence when multiple scope IDs are passed, but this is a minor omission.

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

Parameters4/5

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

Schema has 100% description coverage for the three parameters, but the description adds a critical constraint: at least one of user_id, agent_id, or run_id must be explicitly provided despite all being optional in the schema. This clarifies a potential ambiguity in the input 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 uses the specific verb 'delete' with resource 'every memory' and clarifies scope. This clearly distinguishes it from the sibling delete_memory, which targets a single 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 description gives a clear usage condition: an explicit user_id, agent_id, or run_id must be provided, and no default user is assumed. This helps agents avoid accidentally wiping the wrong scope, though it doesn't explicitly name alternative tools for single-record deletion.

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/TeleAI-UAGI/telemem'

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