Skip to main content
Glama
piephai
by piephai

batch_optimize

Optimize multiple images in one operation: resize, convert format, adjust quality, and save results to an output directory.

Instructions

Optimize multiple images at once

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
widthNoTarget width for all images
formatNoOutput format for all images
heightNoTarget height for all images
inputsYesArray of input image paths or URLs
prefixNoPrefix to add to output filenames
suffixNoSuffix to add to output filenames (before extension)
qualityNoQuality (1-100) for lossy formats
outputDirYesOutput directory for optimized images
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure, but it only states 'optimize' without explaining what optimization entails (e.g., compression, resizing, format conversion) or side effects (e.g., file output, overwriting). The description gives no context on error handling, parallelism, or how output files are named, which is critical 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?

The description is extremely concise and front-loaded, using five words to convey the batch nature. It is not verbose or wasteful. However, it may be under-specified given the number of parameters, but as a succinct statement it earns its place, so it deserves a slightly above-average score.

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?

The tool has 8 parameters, no output schema, and no annotations. The description is a single sentence that does not cover return values, output behavior, how input paths are handled, or any other contextual details. For a tool of this complexity, the description is highly incomplete and fails to guide an agent on the tool's overall behavior.

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 8 parameters are already documented with their own descriptions. The tool description adds no additional meaning beyond noting that it handles 'multiple images', which is a marginal contribution. The baseline of 3 is appropriate since the schema does the heavy lifting.

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 'Optimize multiple images at once' uses a specific verb ('optimize') and resource ('multiple images') while also indicating batch scope ('at once'). This clearly differentiates it from sibling tools like 'optimize_image' which presumably handles a single image, satisfying the requirement for distinguishing from alternatives.

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 description implies when to use the tool (for multiple images) but does not explicitly state when not to use it or mention alternatives such as 'optimize_image' for single images. There are no comparative or exclusionary statements, so the usage guidance is only implied rather than clearly articulated.

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/piephai/mcp-image-optimizer'

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