Skip to main content
Glama

scale_sprite

Destructive

Resize an entire Aseprite sprite, including artwork, by a scale factor or exact width and height. Choose nearest for crisp pixels or bilinear for smoothing.

Instructions

Scale the whole sprite (artwork included).

Provide either `factor` (e.g. 2.0 to double) OR explicit `width`/`height`.
method: "nearest" (crisp pixels, default) or "bilinear" (smooth).

The scaled canvas is subject to the same dimension/area caps as `create_sprite`.
With `factor` the result depends on the sprite's current size, so that check runs
inside Aseprite and reports the size it would have produced.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
widthNo
factorNo
heightNo
methodNoDefault: "nearest".nearest
filenameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changedv0.10.0
    • removedInput schema / properties / factor / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / factor / default
      Removed value: -null
    • removedInput schema / properties / factor / title
      Removed value: -"Factor"
    • addedInput schema / properties / factor / type
      Added value: +"number"
    • removedInput schema / properties / filename / title
      Removed value: -"Filename"
    • removedInput schema / properties / height / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / height / default
      Removed value: -null
    • removedInput schema / properties / height / title
      Removed value: -"Height"
    • addedInput schema / properties / height / type
      Added value: +"integer"
    • addedInput schema / properties / method / description
      Added value: +"Default: \"nearest\"."
    • removedInput schema / properties / method / title
      Removed value: -"Method"
    • removedInput schema / properties / width / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / width / default
      Removed value: -null
    • removedInput schema / properties / width / title
      Removed value: -"Width"
    • addedInput schema / properties / width / type
      Added value: +"integer"
    • removedInput schema / title
      Removed value: -"scale_spriteArguments"
  2. First observedv0.7.0

TDQS

A4/5.0
Behavior4/5

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

With destructiveHint=true already declared, the description adds real context: the scaled canvas is subject to the same dimension/area caps as `create_sprite`, and with `factor` the check runs inside Aseprite and reports the resulting size. That explains a non-obvious failure mode, which is valuable beyond the annotations.

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?

Front-loaded with purpose, then parameter guidance, then caveats. Four short lines with no repetition, though the closing sentence about the cap check is slightly longer than needed.

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 5-parameter mutation tool with no output schema and sparse schema descriptions, the definition covers purpose, parameter alternatives, method semantics, and the size-cap constraint. It does not describe the return payload other than the size report, but that is 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 only 20% (just `method`), so the description must compensate, and it does: it explains `factor` semantics (2.0 = double), the width/height alternative, mutual exclusivity, and the meaning of 'nearest' vs 'bilinear'. Only the `filename` parameter goes unexplained, which is self-evident.

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+resource ('Scale the whole sprite') and clarifies scope with '(artwork included)', which implicitly separates it from resize_canvas. It doesn't name resize_canvas or flip_sprite/rotate_sprite explicitly, so the differentiation from siblings is left to inference.

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?

Gives clear operating context: use either `factor` OR explicit `width`/`height`, and explains the two `method` choices. It doesn't state when to prefer this over resize_canvas or when scaling is inappropriate, but the invocation conditions are unambiguous.

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

Deploy Server

Other Tools