Skip to main content
Glama

Batch Compress GIFs

batch_compress_gifs

Compress up to 20 local GIF files into a chosen output directory using presets or target sizes; source files stay intact unless overwrite is enabled.

Instructions

Compress up to 20 local GIF files into an output directory.

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": {
      "input_paths": "<input_paths>",
      "output_directory": "<output_directory>"
    },
    "name": "batch_compress_gifs"
  }
}

Input Schema

NameRequiredDescriptionDefault
presetNobalanced
overwriteNo
target_mbNo
input_pathsYes
output_directoryYes

Output Schema

NameRequiredDescriptionDefault
errorsYes
failedYes
resultsYes
succeededYes
output_directoryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it says nothing about overwrite semantics (whether existing files in the output directory are replaced), failure handling for partial batches, or permissions. It does establish that inputs must be local and that results land in an output directory, which is modest but real context.

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 or redundancy. It is efficient, though the brevity borders on under-specification given five parameters and a file-writing operation.

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 five-parameter mutation tool with no annotations and zero schema description coverage, the definition is too thin; only the return values are excused by the presence of an output schema. An agent cannot tell from this text how preset, target_mb, or overwrite change the outcome.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across five parameters, and the description only implicitly touches input_paths and output_directory. It says nothing about the preset enum values (best/balanced/smallest), the target_mb cap, or what overwrite does, so three parameters are effectively undocumented everywhere.

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 (compress) and resource (local GIF files) plus a scope cap (up to 20) and an output target, so the operation is unambiguous. It does not explicitly differentiate from the sibling compress_gif, though the 'batch' framing and 20-file cap imply the distinction.

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?

There is no guidance on when to use this versus compress_gif, nor any prerequisites, ordering constraints, or exclusions. The agent must infer that this is the multi-file variant purely from the name and the file cap.

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

Deploy Server

Other Tools