Skip to main content
Glama
qddfxp

task-checkpoint

by qddfxp

tc_compress

Reclaim archive storage by deleting change layers older than the retention period. Restores of removed layers become unavailable, while step baselines remain intact.

Instructions

回收存档空间:删掉超过保留期的变更层内容。被回收的变更层不能再 restore,步骤基线不受影响。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootYes工作区根目录
maximumNo每条路径最多保留几份变更层,默认 50
minimumNo每条路径至少保留几份较旧的变更层,默认 20
keep_secondsNo保留最近多少秒内的变更层,默认 7 天

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
maximumYes
minimumYes
eligibleYes通过了保护检查、可以考虑回收的数量
convertedYes本次真的删掉的 payload 数
bytes_freedYes释放的字节数
already_goneYes已标为不可回退但 payload 本来就不在的数量
keep_secondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well: it discloses destructive behavior (deleting layers), irreversibility (cannot restore), and a safety guarantee (step baseline unaffected). This is strong for a delete operation, though it could further mention any locking or concurrent effects.

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-load the core purpose, then add key consequences. No filler or redundancy — every clause earns its place.

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

Completeness4/5

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

For a destructive tool with 4 parameters, the description covers purpose, effect, and non-target impact; the schema handles parameters and output schema exists for return details. It does not explain the default values or parameter interactions, but those are already in the schema, so the overall context is sufficient.

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%, so the parameters are already well documented. The description adds minimal parameter-specific value beyond the schema, only aligning 'retention period' with keep_seconds. Baseline 3 is appropriate.

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?

Description states 'reclaim archive space' and 'delete change layers older than retention period' — a specific verb and resource. It also differentiates from the sibling tc_restore by explicitly noting that recycled layers cannot be restored, making it clear this is the pruning counterpart.

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?

The description implies usage context (when you need to reclaim archive space) and mentions the retention period, but does not explicitly state when to use this tool vs alternatives such as tc_save or tc_clean. It names restore only as a consequence, not as a decision point.

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