Skip to main content
Glama

clip_wash

Filters and organizes raw video clips into clean buckets by orientation, resolution, duration, size, and audio; optional AI visual sorting adds subject and quality checks.

Instructions

Concurrently inspect, filter, and organize a folder of raw video clips into clean buckets. Default mode requires zero API keys and filters by orientation, resolution, duration, size, and audio. Optional AI visual mode (when ai_target_desc and GEMINI_API_KEY are provided) packs 2-frame thumbnails into 4x4 sheets and classifies clips by target subject, text-overlay cleanliness, role, and quality score.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "src_dir": "<src_dir>",
      "out_dir": "<out_dir>"
    },
    "name": "clip_wash"
  }
}

Input Schema

NameRequiredDescriptionDefault
proxyNoOptional HTTP/HTTPS proxy URL for AI visual API requests.
actionNoWhether to copy, move, or only audit (dry_run) files.copy
out_dirYesOutput directory for organized buckets and _wash_reports/ (JSON, CSV, contact sheets).
src_dirYesDirectory containing raw video clips (scanned recursively).
ai_rolesNoOptional custom bucket role names for AI visual sorting (e.g. ['closeup', 'demo', 'unboxing']).
min_widthNoMinimum video width in pixels (default: 480).
min_heightNoMinimum video height in pixels (default: 480).
min_size_kbNoMinimum file size in KB (default: 50.0).
orientationNoRequired video orientation (default: vertical).vertical
gemini_modelNoGemini model name for AI visual mode.gemini-2.5-flash
max_durationNoMaximum duration in seconds; 0 disables upper limit (default: 300).
min_durationNoMinimum duration in seconds (default: 2.0).
require_audioNoIf true, reject clips that have no audio stream.
ai_min_qualityNoMinimum AI visual quality score 1..5 to keep (default: 3).
ai_target_descNoOptional subject description to enable Gemini 4x4 visual classification (uses GEMINI_API_KEY env var).
make_contact_sheetNoGenerate 4x4 preview contact sheets for passed/rejected clips (requires Pillow).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose real context: it writes to out_dir plus a _wash_reports/ subfolder, make_contact_sheet requires Pillow, AI mode requires GEMINI_API_KEY, and src_dir is scanned recursively. It omits what an agent most needs to know before mutating a directory: overwrite/collision behavior on existing files, whether out_dir must be empty, external tool dependencies for duration probing, and AI call cost or rate limits.

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 filler, with the primary capability front-loaded and the optional AI path clearly marked as conditional. Dense but readable for a 16-parameter tool.

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?

For a 16-parameter mutation tool with no annotations and no output schema, it covers the essential story: two modes, what activates each, and where output lands. What remains thin is the shape of the returned reports and the failure/overwrite semantics, which the absent output schema means the description should carry but does not.

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% across all 16 parameters, so the baseline is 3 and the schema already documents defaults and enums. The description's only added semantic value is tying ai_target_desc and gemini_model together as an activation gate for AI mode, and noting the env var dependency; it does not explain action interaction with out_dir or how the thresholds compose.

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 triple (inspect, filter, organize) plus the resource (a folder of raw video clips) and the outcome (clean buckets). It also names the two operating modes, which none of the siblings (check_environment, tiktok_download, video_matting) share, so an agent can tell it apart 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?

Clearly frames mode selection: default mode needs zero API keys and uses deterministic filters, while AI visual mode turns on only when ai_target_desc and GEMINI_API_KEY are supplied. It lacks explicit when-not-to-use guidance (e.g. failing fast if GEMINI_API_KEY is absent, or when to prefer video_matting for processing rather than sorting), which keeps it from a 5.

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