Skip to main content
Glama

raw_archive

Archives expired raw messages by exporting them to gzip shards and clearing their bodies while preserving IDs, senders, and anchors; use dryRun to preview backlog.

Instructions

把超过保留期的原文导出成 gzip 分片并清空正文(保留 msgId/发送者/锚点)。先落盘再改库,可先用 dryRun 看积压。

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_archive"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
dryRunNo
platformNo
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 well: it discloses that the body is destroyed while identifiers/anchors are retained, that disk write precedes the DB mutation, and that dryRun exists as a safe preview. It does not say whether the cleared text is restorable or what permissions are needed, which keeps it short of 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 short sentences, front-loaded with the mutation and its side effects, followed by the safety ordering and the dryRun hint. Every clause adds information; nothing is repeated from the schema or name.

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 tool with no annotations, no output schema, and undocumented parameters, the description covers purpose, preservation semantics, and write ordering well. It still leaves the agent guessing about scope (platform/sessionId), the exact meaning of days, and whether the gzip output is retrievable later.

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 coverage is 0%, so all four parameters depend on the description, and it only explains dryRun (preview the backlog). The days, platform, and sessionId parameters are never mentioned, leaving the scope of the archive operation and the meaning of days (threshold vs. override) undefined.

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?

The description states a concrete verb pair (export to gzip shards and clear the body) applied to a specific resource (raw text beyond the retention period), and it names exactly what survives (msgId/sender/anchor). That is enough to tell it apart from a pure purge, though it never names a sibling or explicitly contrasts itself with raw_purge/raw_backlog.

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

Usage Guidelines3/5

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

It gives an implied trigger (text past its retention period) and a recommended workflow step ('可先用 dryRun 看积压'), which points an agent toward previewing before committing. It stops short of naming the alternative tool for that preview or stating when not to archive, so the agent must infer the routing.

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