Skip to main content
Glama

Remove AI watermarks from a directory

batch

Cleans supported images, videos, or audio files in a directory, removing AI provenance metadata or watermarks and writing results to a separate output directory.

Instructions

Clean every supported image (media=image), video (media=video), or audio file (media=audio) in a directory the user owns, writing results to a separate directory (default _clean). Modes match the remove tool (for video, use cli_video_batch when opt-in invisible regeneration is needed).

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": {
      "directory": "<directory>"
    },
    "name": "batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNometadata
mediaNoimage
presetNoOptional high-level preset (lossless-fast, balanced, deep-clean) for multimodal batch.
directoryYesDirectory of input files.
output_dirNoOutput directory. Must differ from the input.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.67.0
    • changedInput schema / properties / media / enum
      Previous value: -[
      -  "image",
      -  "video",
      -  "audio"
      -]New value: +[
      +  "image",
      +  "video",
      +  "audio",
      +  "all"
      +]
    • addedInput schema / properties / preset
      Added value: +{
      +  "description": "Optional high-level preset (lossless-fast, balanced, deep-clean) for multimodal batch.",
      +  "enum": [
      +    "lossless-fast",
      +    "balanced",
      +    "deep-clean"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.63.0
    • changedInput schema / properties / media / enum
      Previous value: -[
      -  "image",
      -  "video"
      -]New value: +[
      +  "image",
      +  "video",
      +  "audio"
      +]
  3. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=false. The description adds genuinely useful context beyond them: results are written to a separate directory defaulting to <dir>_clean, so the input directory is not modified in place, which substantiates the non-destructive annotation. It says nothing about overwrite behavior when the output directory already exists, processing duration, or partial-failure handling for a batch operation.

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?

It is a single dense sentence plus a parenthetical, with the core action and output behavior front-loaded and no filler. The nested clauses (media types, default output dir, mode deferral, video alternative) pack a lot in but remain parseable.

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

Completeness3/5

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

For a 5-parameter batch mutation with no output schema, the description covers the primary action, media scoping, and output location adequately. It falls short on the preset parameter, on what 'mode' values actually mean, and on what the agent should expect back (counts, per-file results), which matters for a directory-wide operation.

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?

With 60% schema description coverage, the description meaningfully documents the media parameter's accepted values (image/video/audio) and the output_dir default (<dir>_clean). However, the 'preset' parameter (lossless-fast/balanced/deep-clean) is never mentioned, and the mode values are only deferred to another tool's documentation rather than explained.

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?

The description gives a specific verb ('Clean') over a specific resource ('every supported image/video/audio file in a directory'), and states the scope is a directory the user owns rather than a single file, which distinguishes it from the singular 'remove' sibling. The only softness is that 'Clean' is doing the work that the title ('Remove AI watermarks') makes explicit, so the operation is slightly less self-evident from the description alone.

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?

It explicitly routes one case to an alternative: 'for video, use cli_video_batch when opt-in invisible regeneration is needed', and notes 'Modes match the remove tool', implying mode semantics carry over from that sibling. It does not say when to prefer this batch tool over other batch siblings (cli_audio_batch, cli_batch) or when to use the single-file 'remove' instead, leaving some routing to inference.

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