Skip to main content
Glama

bulk_archive_to_history

Migrate all tasks from _lifecycle/archive/ into date-sharded history directories in a single operation. Useful for project upgrades or after manual archiving.

Instructions

Migrate all tasks from _lifecycle/archive/ into the deep history archive.

This is a convenience migration tool. It iterates every task in _lifecycle/archive/ and calls :func:archive_to_history for each one, moving each task together with its associated reports into history/YYYY-MM-DD/<task-stem>/.

Useful when:

  • A project is being upgraded and existing archived tasks need to be moved into the new date-sharded history structure.

  • You have just finished a manual archiving session and want to flush everything from _lifecycle/archive/ into history/ in one step.

The history/ directory is created automatically if it does not yet exist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
done_dateNoOverride the shard date (``YYYY-MM-DD``) for **all** migrated tasks. Leave empty to use each task's own ``done_at`` timestamp (falls back to today if missing).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description fully discloses the behavior: iterating over every task, calling archive_to_history, moving tasks with reports, and auto-creating the history directory. This makes the operation transparent. It doesn't cover permissions or error handling, but the core behavior is well explained.

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 description is moderately sized but each section adds value: purpose, operation detail, use cases. It is front-loaded with the bold main action. Some minor redundancy (e.g., 'iterates every task... and calls archive_to_history for each one') is fine. It earns its length.

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?

Given the tool has only one optional parameter, an output schema (existence known but content provided by signals), and no annotations, the description covers the essential aspects: what it does, how it works, when to use, and the parameter. It is complete enough for an agent to use correctly.

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 coverage is 100% (the one parameter done_date is described in the schema). The description adds no extra information beyond restating the schema's purpose. Per guidelines, with high coverage, baseline is 3, and the description does not exceed that.

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 specifies the exact action: migrating all tasks from _lifecycle/archive/ to history/ with date sharding. It distinguishes itself from the sibling tool archive_to_history by being a bulk operation, and the verb 'migrate' combined with the source/destination makes the purpose crystal clear.

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 provides explicit 'Useful when' scenarios (project upgrade or after manual archiving) that help the agent decide when to invoke this tool. It implicitly contrasts with the per-task archive_to_history. No explicit 'when not to use' but the scenarios are clear enough for a specialized migration tool.

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

Install Server

Other Tools

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/joinwell52-AI/FCoP'

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