Skip to main content
Glama

batch_fit_to_spec

Bulk-resize every image in a folder to meet min/max width and height specifications, saving conforming copies and reporting final dimensions and pass/fail status for each file.

Instructions

Make every image in a folder satisfy one dimension specification.

The common bulk case: point it at a folder of photos and get conforming copies, with each file's final dimensions and pass/fail reported.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
anchorNocenter
suffixNo_out
backendNo
patternNo
qualityNo
input_dirYes
max_widthNo
min_widthNo
recursiveNo
max_heightNo
min_heightNo
output_dirYes
orientationNoany

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does disclose key behavior: it produces conforming copies, operates on every image in a folder, and reports final dimensions and pass/fail. However, it does not clarify how the dimension constraints interact, whether originals are left untouched, naming/overwrite behavior, or recursive handling.

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 compact and front-loaded: the first sentence states the core function and the second gives the primary use case and expected reporting. It is not padded, though it sacrifices useful detail to achieve that brevity.

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 13-parameter batch tool with 0% schema coverage and no annotations, the description is too thin. It gives a scenario and outcome but leaves the agent without enough information about parameter semantics, alternatives, and behavior constraints; the presence of an output schema only partially offsets the missing return-value detail.

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

Parameters1/5

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

Schema description coverage is 0% across 13 parameters, and the description adds no parameter-level meaning. 'One dimension specification' hints at constraints but does not explain input_dir, output_dir, min/max width/height, orientation, pattern, quality, backend, suffix, recursive, or anchor.

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 states a concrete operation: make every image in a folder satisfy a dimension specification, and adds bulk/copy/reporting context. It does not explicitly name a sibling such as fit_to_spec or batch_check_image_spec, so it stops short of full sibling differentiation.

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 phrase 'common bulk case' implies this is for folder-wide operations and contrasts with single-image tools, but no explicit when-to-use/when-not-to-use guidance or alternative tool names are given.

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

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/Diterex/gimp-mcp'

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