Skip to main content
Glama

Delete empty bins

delete_empty_bins
Destructive

Delete empty bins below a specified bin or across the whole project, with a dry-run option to preview which bins will be removed.

Instructions

Delete every empty bin below a bin (default: the whole project). A bin that only contains empty bins counts as empty; the start bin itself and search bins are never removed. Use dry_run=true to see which bins would go. Returns deleted (count) and empty_bins (item_id, name, path of each).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "delete_empty_bins"
  }
}

Input Schema

NameRequiredDescriptionDefault
bin_idNoStable id of the bin. Omit all bin_* arguments to use the project root.
dry_runNotrue = only report the empty bins and delete nothing. Default false.
bin_nameNoBin name; the first match is used.
bin_pathNoBin path, e.g. "Footage/Day 1".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already mark this as destructive and non-idempotent, but the description adds essential behavioral detail: nested empty bins count as empty, the start bin and search bins are protected, and dry_run suppresses all deletion. It also describes the return payload, which helps the agent understand the effect of the operation.

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?

Four compact sentences, front-loaded with the core action and scope, followed by edge-case semantics and return values. Every sentence contributes useful information with no redundancy.

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?

Given a destructive recursive deletion tool with no output schema, the description covers scope, recursion behavior, protected bins, preview mode, and return values. An agent has enough information to invoke it safely without needing further clarification.

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%, so the input schema already documents bin_id, bin_name, bin_path, and dry_run. The description reinforces the project-root default and dry_run usage but does not add parameter semantics beyond what the schema provides.

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?

States a specific verb and resource: delete empty bins below a given bin, defaulting to the whole project. It also defines what counts as empty, so the agent can distinguish this from sibling deletion tools without opening the schema.

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?

Gives clear context: use dry_run=true to preview deletions, and omitting bin arguments targets the project root. It does not explicitly name alternatives such as remove_empty_tracks, but the bin-versus-track distinction is evident from the tool name and description.

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

Deploy Server

Other Tools