Skip to main content
Glama
glachana

bc-source-mcp

by glachana

Prune cached worktrees and index entries

bc_prune_cache

Removes worktrees and index entries for branches that do not match specified keep filters, preserving only the branches, versions, or localizations you define.

Instructions

Removes worktrees and index entries for branches not matching the keep filters. Pass keep_branches (explicit allowlist) or keep_versions/keep_localizations to retain only certain version/loc combinations. The partial-clone Git repo itself is never deleted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keep_branchesNoExplicit branches to retain (exact names).
keep_versionsNoVersions to retain, e.g. ["26", "27"].
keep_localizationsNoLocalizations to retain, e.g. ["w1", "fr"].
dry_runNoIf true, only report what would be deleted. Default false.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
removedYes
keptYes
freed_mbYes
dry_runYes
Behavior4/5

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

Annotations already indicate mutation (readOnlyHint=false). The description adds a key guarantee that the partial-clone Git repo itself is never deleted and mentions dry_run for safe preview, enhancing transparency.

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?

Two sentences, no wasted words, front-loaded with the main action. Every sentence adds value.

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?

The description covers the pruning logic, retention filters, a safety note, and works with an output schema. It does not discuss error conditions or prerequisites but is adequate for a cache pruning tool.

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?

With 100% schema coverage, the description groups parameters as retention filters ('explicit allowlist', 'only certain version/loc combinations'), adding conceptual meaning beyond 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 clearly states the verb 'Removes' and the resource 'worktrees and index entries for branches not matching the keep filters', distinguishing it from sibling tools like bc_cache_status.

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 explains when to use keep_branches vs keep_versions/keep_localizations, providing clear usage guidance. However, it does not explicitly mention when not to use this tool or list alternatives.

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/glachana/bc-source-mcp'

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