Skip to main content
Glama

scale_image

Resize all layers of an image to specified width and height using resampling methods such as Bicubic, Lanczos3, or NearestNeighbor for pixel art.

Instructions

Scale the whole image (all layers) to a new size. method: Bicubic, Bilinear, Lanczos3, Box, Hermite, Mitchell, BSpline or NearestNeighbor (pixel art).

Input Schema

NameRequiredDescriptionDefault
widthYes
heightYes
methodNoBicubic

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It usefully discloses scope ('whole image, all layers'), but never states that this is a mutating, resampling operation, whether the original pixel data is lost or undoable, or how it interacts with vector/text layers.

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?

Two sentences, front-loaded with the action and scope, with no filler. The dense method enumeration is slightly awkward inline but every value listed is necessary given the empty schema.

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?

For a simple three-parameter tool with no output schema the description is broadly adequate, but it omits units for width/height and says nothing about irreversibility or layer-type effects, which matter for a destructive resample of the entire document.

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 0%, so the description must compensate. It does well for 'method' by enumerating eight accepted values and flagging NearestNeighbor for pixel art, but adds nothing for width/height beyond the names — no units, no aspect-ratio behavior, no constraint that the schema omits.

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 specific verb and resource ('Scale the whole image (all layers) to a new size') and the '(all layers)' scope helps distinguish it from transform_layer or layer-level operations. It does not, however, differentiate itself from close siblings such as resize_canvas or upscale_image, which an agent would need to choose between.

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 explicit guidance on when to use this versus resize_canvas, upscale_image, or crop_image. The only usage hint is the parenthetical '(pixel art)' attached to NearestNeighbor, which guides method selection rather than tool selection.

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