Skip to main content
Glama

vault_sleep

Compress old, low-activity notes to shrink your vault. Uses per-folder age thresholds and skips notes with high Ebbinghaus scores; supports dry-run previews.

Instructions

Compress old low-activity notes to slim down the vault.

Thresholds are read from vault/.sleep-config.json (per-folder):

  • cnyes_archive: 7 days

  • finance: 30 days

  • everything else: 90 days Notes with Ebbinghaus score > 0.5 are skipped.

Args: dry_run: If True, show candidates without making changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses that operation is gated by a config file, that recent/high-Ebbinghaus notes are skipped, and that dry_run previews rather than mutates. It does not say whether compression is reversible, what 'compress' does to note content, or whether the operation requires specific vault permissions.

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?

Front-loads the purpose in one sentence, then lists the threshold configuration and skip rule compactly, then the single argument. Slightly over-structured ('Args:' heading for one parameter) but free of filler.

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?

An output schema exists, so return values need not be described. For a mutating vault operation with no annotations, the description covers trigger conditions, config source, skip logic, and a preview mode – the main residual gap is whether compression is destructive or recoverable.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate. It does: 'If True, show candidates without making changes' tells the agent exactly what dry_run does, which the bare boolean-with-default schema does not. With only one parameter, this is adequate, though the default behavior when omitted is only implied by the schema's default:false.

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?

States a specific verb and resource ('Compress old low-activity notes to slim down the vault') with a clear scope: old, low-activity notes. It does not explicitly distinguish itself from near-siblings like consolidate_tool, prune_archive_tool, or sleep_status, so an agent must infer the boundary from the names alone.

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 explains which notes qualify (per-folder age thresholds and Ebbinghaus score <= 0.5), which is effectively usage criteria. However, it never says when to prefer this tool over prune_archive_tool, consolidate_tool, or sleep_status, nor whether a prior audit or dry_run pass is recommended. Usage is implied rather than directed.

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