Skip to main content
Glama
kud
by kud

clean-playlist

Scan a YouTube playlist to plan removal of deleted/private video tombstones, duplicates, or videos from specified channels. Preview the cleanup plan, then optionally delete.

Instructions

Scan a playlist (1 unit/page) and plan removal of [Deleted video]/[Private video] tombstones, duplicates, and/or videos from given channels. Defaults to dry-run (dryRun: true) — returns the plan without deleting. Pass dryRun: false to actually delete, at 50 quota units per item.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dedupeNoRemove duplicate videos, keeping the first occurrence
dryRunNoWhen true (default), only returns the plan — no deletes performed
playlistIdYesPlaylist ID
pruneChannelIdsNoChannel IDs whose videos should be removed
removeTombstonesNoRemove [Deleted video]/[Private video] tombstones
Behavior4/5

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

With no annotations, the description carries the full burden of disclosing behavior. It states the dry-run default, that passing dryRun: false deletes, and provides quota cost context (1 unit/page, 50 units per item). It also explicitly mentions the types of items removed, making the destructive nature clear.

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?

The description is a concise two-sentence structure that front-loads the core action and scope, then provides crucial behavioral defaults. No filler or redundancy.

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 5-parameter tool with no output schema, the description covers the workflow, dry-run default, deletion thresholds, and quota implications. It does not detail the plan's return structure, but the provided context is sufficient for an agent to select and invoke the tool correctly.

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?

The input schema already documents all 5 parameters with 100% coverage. The description adds value by mapping the removal categories to parameters (tombstones, duplicates, channel videos), clarifying the dryRun effect, and providing quota details not present in 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 tool's function with specific verbs ('Scan', 'plan removal') and resources ('playlist', 'tombstones', 'duplicates', 'videos from given channels'). It distinguishes itself from CRUD siblings by focusing on bulk playlist cleanup with a dry-run workflow.

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?

The description implies the appropriate use case by describing the scanning and removal capabilities, and explains the dry-run vs. actual deletion behavior. It does not explicitly cite alternatives like remove-from-playlist or list exclusions, but the context is clear enough for an agent to know when to invoke this tool.

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/kud/mcp-youtube'

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