Skip to main content
Glama

clear_old_data

Remove conversations, file events, and memories older than a specified number of days, optionally limited to one project, to manage retained history.

Instructions

清理指定天数之前的历史数据(对话、文件事件、记忆)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "olderThanDays": "<olderThanDays>"
    },
    "name": "clear_old_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNo项目名称(可选,不传则清理全部)
olderThanDaysYes清理多少天之前的数据(例如 30 表示清理 30 天前的数据)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It helpfully names the data classes affected, but says nothing about permanence/irreversibility, required permissions, whether deletion is scoped by user or project, or what the call returns — significant omissions for an irreversible bulk-delete operation.

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?

A single front-loaded sentence with no filler; the scope (data types) is stated up front. It is efficient, though it under-specifies rather than being genuinely complete.

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

Completeness2/5

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

For an unannotated destructive bulk-deletion tool with no output schema, the description is too thin: no irreversibility warning, no confirmation of default scope (all projects), and no note on what happens to related data. An agent could invoke this far more destructively than intended.

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 description coverage is 100%, with both parameters already documented, so the baseline applies. The description only restates the day-threshold concept and adds no extra semantics such as boundary inclusivity or project-name matching rules.

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 specific verb (clear/purge) plus the resource (historical data older than N days) and enumerates the affected data classes (conversations, file events, memories). It is clear enough to distinguish from single-item siblings like delete_memory, though it never names them explicitly.

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 guidance on when to use this versus delete_memory or other cleanup paths, and no prerequisites or cautions are given. The agent is left to infer that this is a bulk retention operation.

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