Skip to main content
Glama

memory_invalidate

Mark a direction-layer memory as invalid without deleting it. Locate by memory ID or a unique content substring, preserving an auditable trail after invalidation.

Instructions

Invalidate a direction-layer memory — mark it invalid without deleting.

方向层偏好过时/被推翻时显式失效(Zep 失效语义:置 invalid_at 不删除, 保留可审计轨迹)。失效后不再进注入,也默认不出现在 memory_list。

两种定位方式,二选一:memory_id 精确定位,或 content_match 子串定位 (手里只有原文时免去先查一次 id——被配额顶回来的那一刻正是这种处境)。 子串必须唯一命中当前上下文的有效条目:命中 0 条或多条一律不动数据,多条时 返回候选让你给出更精确的子串。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
memory_idNo要失效的方向层记忆 id(与 content_match 二选一)
content_matchNo唯一定位子串,在有效条目正文中精确匹配(与 memory_id 二选一)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

No annotations provided, so the description carries full burden, and it delivers richly: discloses Zep invalidation semantics (sets invalid_at without delete, preserves auditable trail), states post-invalidation behavior (no longer injected, absent from memory_list by default), and reveals the multi-match no-op guard policy. This is thorough behavioral disclosure.

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?

Front-loaded with a clear English summary, then adds Chinese operational context. The content is dense but purposeful—each section earns its place (semantics, behavior, dual-identification methods, no-op rules). Slightly verbose in the middle section but no wasted words.

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?

Has output schema, 100% parameter coverage, and the description explains return/behavior expectations: no-op for 0 or multiple matches, candidate list returned on ambiguity. Given tool complexity (dual-location, uniqueness constraints, invalidation semantics), the description is complete and self-sufficient.

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 coverage is 100% and both parameters are documented in the schema. The description adds value by explaining the 'exactly one of two' relationship (memory_id XOR content_match) and the unique-match constraint on content_match, going beyond what the schema's individual descriptions convey.

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?

Specific verb+resource: 'Invalidate a direction-layer memory — mark it invalid without deleting.' Clearly distinguishes from delete, explicitly states it sets invalid_at without removal, and contrasts with memory_list for what happens after invalidation. Well differentiated from siblings like memory_add, memory_list.

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

Usage Guidelines5/5

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

Explicitly states when to use ('when direction-layer preference is stale/overruled'), describes two mutually-exclusive location methods (memory_id vs content_match), and gives clear when-not (0 or multiple matches result in no-op). Even describes the specific scenario of being quota-limited and needing to avoid an extra lookup.

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/CronusL-1141/AI-company'

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