Skip to main content
Glama

Resize a local image

abox_image_resize

Resize JPEG, PNG, or WebP images to a target width and/or height with contain or cover fitting, then write a verified local output file; upscaling is disabled by default.

Instructions

Resize a still JPEG, PNG, or WebP with the existing abox.tools geometry and codecs. Specify width, height, or both. Contain fits the whole image; cover crops centrally. Upscaling is disabled by default. Writes and verifies a new local image; re-encoding may remove metadata.

Input Schema

NameRequiredDescriptionDefault
fitNocontain
widthNo
formatNokeep
heightNo
qualityNo
backgroundNo#ffffff
input_pathYesAbsolute local filesystem path. URLs and network shares are refused.
output_pathYesAbsolute local filesystem path. URLs and network shares are refused.
allow_upscaleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare the generic write profile (readOnly=false, destructive=false, idempotent=false, openWorld=false); the description adds real value by disclosing that a new local file is written and verified, that re-encoding may strip metadata, and that upscaling is disabled by default. It does not say whether an existing output_path is overwritten.

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?

Four short sentences, front-loaded with the operation and formats, then the sizing rules, then behavioral notes. The phrase 'existing abox.tools geometry and codecs' is mild filler but arguably signals consistency with sibling tools.

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?

With no output schema, low schema coverage, and a mutation tool, the description should carry more: overwrite behavior on output_path, what 'verifies' means, and the role of quality/background when re-encoding are all unstated. The core geometry semantics are covered, so it is adequate but incomplete.

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 coverage is only 22% of 9 parameters, and the description compensates for some: the meaning of fit values ('contain' fits the whole image, 'cover' crops centrally) and the default of allow_upscale. It says nothing about format, quality, or background, leaving a third of the parameters undocumented in both places.

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?

States a specific verb and resource ('Resize a still JPEG, PNG, or WebP') plus the scope of supported formats, which cleanly separates it from siblings such as abox_image_convert and abox_image_compress. An agent can identify the operation without opening the schema.

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?

Gives concrete invocation conditions: specify width, height, or both; contain fits the whole image, cover crops centrally; upscaling is off by default. It stops short of naming alternatives (e.g. use abox_image_convert to change format only) or stating when not to use it.

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