Skip to main content
Glama

Resize, Crop & Transform Image

image_resize_crop

Resize, crop, rotate, grayscale, and sharpen local images offline to prepare files for use while keeping them on disk.

Instructions

Resize, crop, rotate, grayscale, or sharpen a local image completely offline.

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": {
      "inputPath": "<inputPath>"
    },
    "name": "image_resize_crop"
  }
}

Input Schema

NameRequiredDescriptionDefault
fitNoinside
cropNoOptional pixel extract region before resize
widthNoTarget width in px
formatNoOptional format override
heightNoTarget height in px
qualityNo
grayscaleNo
inputPathYesLocal image file path
outputPathNo
rotateDegreesNoOptional clockwise rotation degrees
withoutEnlargementNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.4/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing. It does not say whether the tool writes a new file or modifies in place, what happens if outputPath is omitted, what happens to existing files at that path, whether quality applies only to lossy formats, or whether processing blocks/rate-limits. For a file-mutating tool with 11 parameters, this is a severe gap.

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, which is appropriately terse for a simple utility. The only defect is that one advertised capability (sharpen) is not backed by the schema, which costs it a point.

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

Completeness1/5

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

Eleven parameters, a nested crop object, no annotations, and no output schema — yet the description is one capability sentence. Nothing tells the agent the output contract (returned path? dimensions?), the default write behavior, or how fit and withoutEnlargement interact. It is not complete enough for a tool of this complexity.

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 55%, so the description must compensate for the undocumented half and does not. It names crop and rotate which map loosely to crop and rotateDegrees, but says nothing about fit modes (cover/contain/fill/inside/outside), quality's interaction with format, outputPath, or the withoutEnlargement default of true — arguably the most surprising parameter for a resize tool. 'Sharpen' also implies a parameter that does not exist.

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 concrete verbs and a clear resource: resize, crop, rotate, grayscale a local image. 'Completely offline' adds a meaningful scope constraint. However, it advertises 'sharpen' with no corresponding parameter in the schema, and it does not distinguish this tool from siblings like image_compress_convert or image_batch_process.

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 statement of when to choose this tool over image_compress_convert (which also handles format/quality) or image_batch_process for multiple files. Usage is only implied by the enumerated operations; no exclusions or alternatives are named even though several siblings overlap heavily.

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