Skip to main content
Glama
yanglinfeng

Memory Bridge

by yanglinfeng

遗忘长期记忆

memory_forget
DestructiveIdempotent

Delete a memory upon explicit user request using recoverable soft deletion with audit logging to allow restoration and traceability.

Instructions

根据用户明确要求删除一条记忆。采用可恢复的软删除,并保留审计记录。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
reasonNo用户请求删除
_memoryRequestKeyNo兼容代理注入的内部请求键,用于合并同一次模型工具调用

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds meaningful nuance: the delete is a recoverable soft delete and audit records are retained. This changes how an agent should interpret the destructive hint. It does not cover auth, error, or rate-limit behavior, so not a 5.

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 tight sentences: purpose front-loaded, behavioral nuance second. No filler or redundancy.

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

Completeness3/5

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

Covers purpose and the key soft-delete/audit behavior, but with no output schema and only 33% parameter coverage, it leaves parameter usage and return behavior unexplained. Adequate for a simple mutation tool but incomplete.

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

Parameters2/5

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

Schema description coverage is only 33% (only _memoryRequestKey is documented). The description implies the id via '一条记忆' but gives no format, syntax, or explanation for the id or reason parameters, so it fails to compensate for the low schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (删除/delete) and resource (一条记忆/one memory) with a clear single-item scope tied to an explicit user request. It is inherently distinguishable from memory_remember/memory_update/memory_recall, but no sibling is named, so it does not meet the 5 bar of explicit differentiation.

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?

Establishes a clear invocation condition: use only when the user explicitly requests deletion ('根据用户明确要求'). No when-not guidance or named alternatives are provided, so it stops short of a 5.

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