Skip to main content
Glama

raw_purge

Hard-deletes raw messages by message, sender, or platform, rewrites archive shards, and clears sourceMsgIds links from derived memories.

Instructions

【不可撤销】按消息 / 发言人 / 平台硬删原文,重写归档分片,并清除派生记忆里的 sourceMsgIds 引用。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "raw_purge"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
msgIdNo
platformNo
senderIdNo
sessionIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does real work: it flags irreversibility up front (【不可撤销】) and discloses non-obvious cascading effects — archive shard rewriting and clearing sourceMsgIds references inside derived memories. What is missing is the operational risk framing: no mention of required permissions, no warning about what happens when the filters are omitted, and no return-value description.

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?

One dense sentence with the most critical fact — irreversibility — front-loaded in brackets, followed by the deletion axes and then the downstream effects. No filler, no restatement of the tool name, and the ordering matches the order an agent needs the information.

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?

For a destructive, five-parameter tool with zero annotation coverage and no output schema, the description covers the two things that matter most (irreversibility and cascade scope). It remains incomplete on filter-combination semantics and on the zero-required-parameter hazard, which is exactly the kind of gap an agent could hit destructively.

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

Parameters3/5

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

Schema coverage is 0%, so the description must compensate and it only partly does: it names three filter axes that map to msgId, senderId, and platform, but leaves the id and sessionId parameters entirely unaccounted for. It also never states whether the filters combine as AND or OR, which matters greatly given all five parameters are optional.

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 concrete verb+resource pair: hard-delete original text (硬删原文) with three filter axes (message / sender / platform), plus the archive-rewrite side effect. An agent can tell this is a destructive raw-store purge rather than a memory-level operation like memory_forget. It stops short of naming which sibling to prefer for softer/derived deletions.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no alternative is named. The phrase 'derived memories' hints that a sibling forgets memory entries rather than raw text, but the agent must infer that routing itself. Nothing states prerequisites or the conditions under which this should be chosen over the memory_* or relation_* tools.

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