Skip to main content
Glama

resize

Scale pixel art by factor or exact dimensions using nearest-neighbor, or change canvas size with an anchor to preserve placement.

Instructions

scale{factor|width,height} nearest-neighbor | canvas{width,height,anchor?:center|top_left|top|...}

Input Schema

NameRequiredDescriptionDefault
modeYes
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.0

TDQS

C2.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the nearest-neighbor resampling for scale mode and anchor options for canvas mode, but it omits whether the operation mutates or overwrites a file, permission needs, and any return behavior.

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

Conciseness3/5

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

The description is extremely compact and packs useful syntax into one line, but the pseudo-BNF format is cryptic and lacks a plain-language lead. It is concise but not well structured for quick agent comprehension.

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?

Given no annotations, no output schema, and 0% schema description coverage, the description should explain path semantics and mutation behavior. It only partially covers mode-specific parameters and leaves essential context missing for safe invocation.

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 description coverage is 0%, so the description must compensate. It explains the mode enum and mode-specific options (factor, width/height, anchor), which is valuable, but it never explains the required 'path' parameter or its relation to input/output.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The tool name 'resize' plus the scale/canvas syntax implies an image/canvas resize operation, but the description never states a clear verb and resource. It does not differentiate from sibling tools or explicitly identify what is being resized (sprite, canvas, file).

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?

The description lists mode-specific options but gives no guidance on when to choose 'scale' versus 'canvas'. There are no prerequisites, exclusions, or alternatives mentioned.

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