Skip to main content
Glama

prune_learnings

Prune old and redundant learning entries by archiving entries past a configurable age and promoting frequently recurring findings to improve advisory relevance.

Instructions

Lifecycle maintenance for .squad/learnings.jsonl (v0.11.0+). Two passes: (1) entries older than max_age_days are marked archived: true and hidden from default read_learnings; (2) entries with ≥ min_recurrence accept decisions on the same normalised finding title get promoted: true on the most-recent matching entry — promoted entries surface first in advisory prompts regardless of scope match. Atomic rewrite under file lock. Never auto-runs (max_age_days defaults to 0). Use dry_run: true to inspect counts without mutating.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspace_rootYes
max_age_daysNo
min_recurrenceNo
dry_runNo
Behavior5/5

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

No annotations provided, but description fully discloses archival, promotion, atomic rewrite, and auto-run behavior. No contradictions.

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?

Single efficient paragraph front-loading purpose, then detailing passes, lock, and dry_run. No wasted words.

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?

Covers key behaviors and constraints. Lacks output format details, but acceptable for a maintenance tool with no output schema.

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 coverage 0%, but description explains max_age_days, min_recurrence, and dry_run in context. workspace_root not explained but self-evident.

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?

Describes specific lifecycle maintenance for .squad/learnings.jsonl with two clear passes, distinguishing it from reading/recording tools.

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?

Provides usage context: never auto-runs by default, dry_run for inspection. Does not explicitly list alternatives but context is clear.

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/ggemba/squad-mcp'

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