Skip to main content
Glama

import_image

Destructive

Imports PNG, JPG, or GIF images as .aseprite files, with nearest-neighbor resizing and palette snapping or color quantization for pixel-art preparation.

Instructions

Import a PNG, JPG or GIF as an .aseprite file.

Resizes with nearest-neighbor sampling (give only width or height to keep the aspect ratio), then snaps to a fixed palette (colors) or quantizes to max_colors.

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": {
      "src": "<src>",
      "out_path": "<out_path>"
    },
    "name": "import_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
srcYes
widthNo
colorsNo
heightNo
out_pathYes
ditheringNonone
max_colorsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

The description usefully adds real behavior beyond annotations: nearest-neighbor resampling, and that supplying only width or height preserves the aspect ratio. However, annotations declare destructiveHint=true and readOnlyHint=false, and the description never says whether an existing file at `out_path` is overwritten or whether the operation is atomic — a notable omission for a destructive write.

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 short sentences with the conversion front-loaded and the processing pipeline second; no filler. Slightly under-specified rather than verbose, and the inline backticked parameter names make it scannable.

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 7-parameter destructive transform with no output schema, the description covers the core transformation but leaves file-overwrite semantics, input constraints (size limits, alpha handling), and the dithering option unexplained. Adequate to start, not complete enough to call safely without experimentation.

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 does explain `width`/`height` aspect-ratio coupling, `colors`, and `max_colors`, which is meaningful. But `src`, `out_path`, and especially the `dithering` enum (none/ordered/old) receive no explanation of effect, and precedence when both `colors` and `max_colors` are supplied is unstated.

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 first sentence gives a specific verb and resource plus the format conversion: "Import a PNG, JPG or GIF as an .aseprite file." That distinguishes it from generative siblings like create_sprite or draw, though no sibling is named 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 second sentence implicitly presents two mutually exclusive color paths (fixed palette via `colors` vs quantization via `max_colors`), which hints at configuration choices but never states when to pick one or when not to use this tool at all (e.g., vs. create_sprite).

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