Skip to main content
Glama

codesweep_archive_items

Archive selected sweep entries to soft-delete them, removing from totals and default lists while retaining recurrence history. Filter by status or age to target specific items.

Instructions

Selectively archive entries within a sweep (soft-delete).

Archived entries are excluded from codesweep_next, codesweep_status totals, and default codesweep_list_items. They remain matchable by codesweep_add for recurrence detection — re-adding un-archives them with recurrence_count carried forward (R5 invariant).

At least one filter is required.

Args:

  • sweep_ref: Sweep ID (SW-N) or name

  • items: Specific item identifiers to archive. An EXPLICITLY EMPTY list selects nothing; passing it together with where_status or older_than is an ERROR, because those filters would then be silently ignored. Omit items entirely to archive by filter.

  • where_status: Archive entries currently in this state

  • older_than: Duration spec — '30d', '2w', '6m', '1y'. Compares against the entry's last activity timestamp.

  • reason: Free-form reason recorded on each archived entry

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsNo
reasonNo
sweep_refYes
older_thanNo
where_statusNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.2.2

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the behavioral disclosure burden. It reveals the soft-delete semantics, exclusion from codesweep_next, codesweep_status, and codesweep_list_items, the un-archive behavior via codesweep_add with recurrence_count carried forward, and the error condition for combining an empty items list with filters.

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?

The description is front-loaded with the core purpose, then efficiently covers behavioral side effects, a key invariant, and parameter details. Every sentence adds necessary information, including the subtle empty-list error case that would otherwise be easy to miss.

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 five-parameter mutation tool with no annotations, the description covers required filters, parameter semantics, error conditions, behavioral consequences, and reversibility. An output schema exists, so omitting return-value details is acceptable; nothing essential for correct invocation is missing.

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

Parameters5/5

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

Schema description coverage is 0%, and the description compensates completely by documenting all five parameters with meaningful semantics: sweep_ref is SW-N or name, older_than has duration spec formats and compares against last activity, and items has nuanced empty-list and omission semantics that are not visible in the schema.

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 description opens with a specific verb and resource: 'Selectively archive entries within a sweep (soft-delete).' This clearly distinguishes it from sibling codesweep_archive, which implies whole-sweep archival, and names the exact scope of operation.

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?

The description gives clear operational context: it states that at least one filter is required, explains that omitting items archives by filter, and warns that an explicit empty items list combined with other filters is an error. However, it does not explicitly name alternatives or state when not to use this tool versus codesweep_archive or codesweep_mark.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/faxik/codebugs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server