Skip to main content
Glama

image-resize-convert-compress-watermark

Resize an image

image_resize

Call this tool to write a resized copy. fit inside keeps aspect; cover fills and crops; exact stretches. One of width/height alone keeps aspect. Input untouched. Free: sources up to 4 MP.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fitNoinside = fit within the box, cover = fill and crop, exact = stretchinside
pathYesName of an image uploaded with image_upload, or one this server wrote earlier
widthNoTarget width in pixels
heightNoTarget height in pixels
out_pathYesName for the file to write; it comes back as a download link valid for one hour. The extension decides the output format; without a known one the input's format is kept
overwriteNoReplace out_path if it already exists. Default false. Never allows an output to be one of the inputs

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The description adds 'Input untouched,' clarifying non-destructive behavior beyond the annotations, and notes the 4 MP source limitation. It does not spell out overwrite behavior or return details in the main description, but the schema covers overwrite and the output download link.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, each carrying distinct information: purpose, fit semantics, aspect-ratio behavior, input safety, and size limit. No filler, repetition, or irrelevant detail.

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

Completeness4/5

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

For a 6-parameter tool with full schema coverage and no output schema, the description covers the essential behavioral decisions: fit modes, one-dimension handling, input safety, and size cap. It does not say what happens if both width and height are omitted, and it doesn't route to sibling tools, but the remaining gaps are minor.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real value by explaining what each fit mode does ('cover fills and crops', 'exact stretches') and clarifying that a single width or height alone preserves the aspect ratio. This goes beyond the schema's terse field descriptions.

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 opens with a clear verb+resource: 'write a resized copy' and explains the three fit modes. It does not explicitly contrast siblings like image_batch_resize or image_crop, but the resize semantics are unambiguous and distinct from those tools.

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?

'Call this tool to write a resized copy' directly states when to invoke it, and the free-tier size cap gives practical selection context. It does not mention when to prefer image_thumbnails, image_batch_resize, or other image tools, so it lacks explicit alternative routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.