Skip to main content
Glama

curator_run

Destructive

Archives stale agent-created skills after configurable inactivity windows and reports pending changes by default; set dry_run to false to apply.

Instructions

Move stale agent-created skills to archive.

Lifecycle: active → stale when last activity > stale_after_days stale → archived when last activity > archive_after_days (also moves primary directory to .archive/ and removes its mirrors, so a sync cannot revive it)

Activity is the last use, foreground view or creation. Patches do not count: autonomous loops patch skills routinely, which is maintenance, not proof that anyone relies on the skill. A skill must spend the gap between the two windows in 'stale' before it is archived, and renewed activity moves a stale skill back to 'active'. Every new curator pass runs this with dry_run=False.

Contribution beats activity: a skill whose uses were followed by more user corrections (plus 'wrong' reports) than clean uses — at least SKILL_RETIRE_MIN_HARMFUL of them — goes stale and then archived even when it is used often. Above SKILL_ACTIVE_CAP local skills, the lowest- contribution loop skills that were quiet for a week go stale.

Tier-aware adjustments (the discrete trust signal trumps raw activity): • tier='validated' skills are NEVER stale-aged or archived — proven load-bearing knowledge stays alive regardless of recency. • tier='hypothesis' skills age faster — half the stale_after window (default 15d instead of 30d). Unproven skills don't get to linger. • tier='observed' uses the standard windows.

Covers every learning-loop origin (CURATABLE_SKILL_ORIGINS). NEVER touches: • foreground (user-authored) skills — provenance check • pinned skills — opt-out flag • validated tier — proven externally • skills with no created_by_origin set (unknown provenance — be safe)

dry_run=True (default) reports what would change without writing. Set False to apply.

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": "curator_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
stale_after_daysNo
archive_after_daysNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.2

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructive=true, but the description goes well past them: it discloses that archiving physically moves the primary directory to .archive/ and deletes mirrors so a sync cannot revive the skill, and that patches deliberately do not count as activity. The tier rules and the 'never touches' list (foreground, pinned, validated, unknown provenance) give the agent concrete reasons a run might no-op, which is exactly the context annotations cannot supply.

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?

The front-loaded verb sentence and the lifecycle block make the core behavior scannable, and the bulleted tier adjustments and exclusion list are well organized for a genuinely complex rule set. There is some redundancy between 'Every new curator pass runs this with dry_run=False' and 'Set False to apply', and a few clauses could be tightened without losing meaning.

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?

For a destructive, multi-rule mutation tool, the description covers what changes, what is never touched, why activity and contribution are weighted differently, and how dry_run protects the caller. With an output schema present it need not explain return values, and the only remaining gap — the archive_after_days default — is minor against the depth provided.

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 0%, so the description carries the burden: it explains dry_run's default and effect well ('reports what would change without writing... Set False to apply'). For the two window parameters it only implies meaning through the lifecycle section and mentions one default (15d for hypothesis tier vs 30d), never stating that stale_after_days and archive_after_days are per-call overrides or that archive_after_days defaults to 90.

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 first sentence states a specific verb and resource — 'Move stale agent-created skills to archive' — and the body immediately narrows scope to learning-loop origins while excluding foreground, pinned, validated, and unknown-provenance skills. That is enough to separate it from siblings like curator_restore (which presumably reverses archiving) or curator_review (which inspects rather than mutates).

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?

It gives strong operational context on when the tool fires ('Every new curator pass runs this with dry_run=False') and enumerates the conditions that make a skill eligible for aging or archiving. What's missing is an explicit contrast with the adjacent tools the agent might pick instead (curator_restore, curator_review, curator_evaluate_skill); the description never names an alternative or says when not to call this one.

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

Deploy Server

Other Tools