Skip to main content
Glama

remove_media

Deletes unused media from a video project and blocks removal when any clip still references it, preventing broken timelines.

Instructions

Remove unused media. Refuses if any clip still uses it.

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": {
      "path": "<path>",
      "media_id": "<media_id>"
    },
    "name": "remove_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
media_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 burden. It does disclose one valuable guard: the operation refuses when any clip still references the media, which signals a safety check. It omits reversibility, whether the underlying file is deleted from disk, and what a refusal looks like to the caller.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the action and followed immediately by the constraint. Nothing is wasted, though a single clause naming the media identifier and the disk/file effect would fit without bloat.

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 simple two-parameter destructive tool with no output schema, the definition covers what it does and the key safety behavior. It would be complete with explicit irreversible-loss disclosure and a note on the two identifiers, but nothing an agent needs in order to call it correctly is missing.

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?

Zero param count and a trivial path/media_id pair: schema description coverage is 0%, but there is no meaningful ambiguity here, so the bare field names are enough. A brief mention that media_id and path identify the same media across projects would have earned a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ("Remove unused media"), which distinguishes it from sibling clip/effect/marker removals by targeting a media asset. It doesn't explicitly contrast with import_media or explain what a "media" object is, but the intent is clear.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The qualifier "unused" implicitly tells the agent when this is appropriate, and the refusal condition hints at a pre-check. However, there is no explicit guidance on alternatives (e.g., whether to detach clips first) or prerequisites such as project state or permissions.

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