Skip to main content
Glama

resize_sprite

Scale an entire sprite—all layers and frames—to a new pixel width and height using nearest-neighbour resampling, preserving pixel-art edges.

Instructions

Scale the whole sprite (every layer and frame) to a new size, nearest-neighbour.

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": {
      "path": "<path>",
      "width": "<width>",
      "height": "<height>"
    },
    "name": "resize_sprite"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesSprite file. Relative paths resolve against the server root.
widthYesWidth in pixels
heightYesHeight in pixels

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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, and it does disclose real behavior: the operation touches every layer and frame, and resampling is nearest-neighbour rather than interpolated. It does not say whether the file is overwritten in place or a new file is produced, nor how non-uniform width/height ratios are handled.

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?

A single front-loaded sentence with no filler. The scope qualifier and the resampling method both appear before any reader would need them.

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 three-parameter operation with complete schema coverage and an output schema, the description covers the essentials: what is scaled, what part of the document is affected, and the interpolation mode. The only meaningful gap is in-place-versus-new-file and aspect-ratio behavior.

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 100%, so path, width, and height are already fully documented with types and 1-4096 bounds. The description adds only that width/height constitute the new overall sprite size and that scaling is applied across all layers/frames; it supplies no per-parameter semantics beyond the schema.

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?

States a specific verb ("Scale"), a specific resource ("the whole sprite"), the exact scope ("every layer and frame"), and the resampling method ("nearest-neighbour"). That is enough to distinguish it from crop_sprite or flatten_sprite without opening a schema, though it never names a sibling explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase "the whole sprite (every layer and frame)" implies when this is the right choice versus a region-level operation like crop_sprite, but usage is only implied. There is no explicit when-to-use, no exclusion, and no mention of aspect-ratio or partial-resize scenarios.

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