Skip to main content
Glama

video erase

cli_video_erase

Erase specified x,y,w,h regions from a video across all or selected frames, with optional tracking to remove moving watermarks or objects.

Instructions

Erase user-directed (x,y,w,h) region(s) from a video across all or selected frames.

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": {
      "source": "<source>",
      "regions": "<regions>"
    },
    "name": "cli_video_erase"
  }
}

Input Schema

NameRequiredDescriptionDefault
trackNoTrack moving watermark/object box(es) across video frames from the starting frame.
dilateNoGrow each box in pixels.
framesNoInclusive 0-based START:END frame range (default: all frames).
outputNoOutput path (default: <source>_clean with the same container).
sourceYessource
as_jsonNoEmit the result as JSON.
backendNoInpaint backend for unrecovered core pixels.auto
regionsYesx,y,w,h box to erase (repeatable).
strip_metadataNoStrip AI metadata from the transcoded output.
temporal_consistencyNoEnable multi-frame YCrCb unblending, optical-flow clean-plate recovery, and temporal stabilization.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.64.0

TDQS

C2.9/5.0
Behavior2/5

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

The only annotation is openWorldHint=false, so the description carries nearly the full disclosure burden. It never states that this writes a new file (implied only by the output param), whether the source is left untouched, what happens when the erased region cannot be inpainted, or anything about processing cost for long videos.

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?

A single front-loaded sentence with no filler and the region format placed early. It is efficient, though its brevity comes partly from omitting guidance rather than from tight editing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter mutation tool with no output schema and minimal annotations, one sentence is inadequate. Nothing explains the interaction between track, temporal_consistency, and backend, or what the agent should expect on disk after the call.

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 description coverage is 100%, so all ten parameters are already documented in the schema; the baseline of 3 applies. The description adds only a restatement of the x,y,w,h region format and the all-vs-selected frame scope, and says nothing extra about tracking, backends, or temporal consistency.

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 (erase), a specific resource (video), and the scope of the operation (user-directed x,y,w,h regions across all or selected frames). It does not distinguish itself from nearby siblings such as cli_video_invisible, cli_video_visible, or cli_video_message_remove, which an agent would need in order to choose correctly.

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

Usage Guidelines2/5

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

The phrase 'user-directed (x,y,w,h) region(s)' hints that this is the manual-box variant, but no alternative tool is named and no when-to-use / when-not-to-use condition is stated. The agent must infer selection criteria purely from the tool name and the word 'user-directed'.

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