Skip to main content
Glama
gwq0514

cognitive-harness-mcp

by gwq0514

遗忘用户认知记忆

cognitive_forget
Destructive

Remove user memories via versioned degradation that preserves evidence and halves confidence, or permanently delete when necessary. Use for preference changes or data removal.

Instructions

删除或降级一条用户记忆。默认 degrade(版本化降级):保留证据链、置信度减半,适用于"用户想法变了"的场景;delete 为彻底删除,不可恢复,请谨慎使用。

Args: memory_id: 要遗忘的记忆 ID mode: 'degrade'(默认,版本化降级)| 'delete'(彻底删除) reason: 遗忘原因,可选

Returns: { "success": boolean, "mode": string }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo'degrade' 版本化降级(保留证据链,默认);'delete' 彻底删除degrade
reasonNo遗忘原因(degrade 时记录到版本历史)
memory_idYes要遗忘的记忆 ID
Install Server

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, the description discloses critical behavioral detail: degrade preserves the evidence chain and halves confidence, while delete is permanent and unrecoverable. This gives the agent essential awareness of side effects and irreversibility, which annotations alone do not fully convey.

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 compact, front-loaded with the core action, and logically organized with Args and Returns sections. Every line adds value, and there is no filler or redundant elaboration.

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?

Even without an output schema, the description explicitly specifies the return shape: { success: boolean, mode: string }. It also covers both modes, their side effects, default behavior, and the optional reason parameter. This is sufficient for an agent to invoke the tool correctly and understand the result.

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?

The schema already documents all parameters with 100% coverage, so the baseline is 3. The description adds meaningful behavioral semantics, particularly that degrade halves confidence and delete is irreversible, going beyond the schema's enum descriptions. The Args section also clearly marks reason as optional.

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 clearly states the tool's core action: '删除或降级一条用户记忆' (delete or degrade a user memory). It further specifies two distinct modes with concrete semantics, making it easily distinguishable from sibling tools like cognitive_search, cognitive_write, and cognitive_update.

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 provides clear situational guidance: degrade is recommended when '用户想法变了' (the user's thoughts changed), while delete is for complete removal and marked as irreversible. It does not explicitly mention alternative sibling tools for non-destructive updates, but the mode-selection guidance is clear enough for most use cases.

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

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/gwq0514/cognitive-harness-mcp'

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