Skip to main content
Glama
Aseprite MCP Pro Max

Aseprite MCP Pro Max

generate_normal_map

Creates a pixel-crisp normal map from a sprite's silhouette and shading for dynamic 2D lighting in game engines, with OpenGL or DirectX green-channel conventions.

Instructions

Make a normal map of a sprite for dynamic 2D lighting in a game engine.

The form is estimated from the silhouette and colour areas, plus (with use_luminance) the sprite's own shading. Pixel-crisp, same size as the sprite, transparent where the sprite is.

Args: filename: Aseprite file output_filename: PNG to write (e.g. hero_n.png) layer_name: Layer or group ("" = all visible) frame_index: Frame strength: Bumpiness, 0.3-3 use_luminance: How much the existing shading adds detail, 0-1 convention: "opengl" (Godot, Unity: green up) or "directx" (green down) as_layer: Also add it to the sprite as this (hidden) layer

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": {
      "filename": "<filename>",
      "output_filename": "<output_filename>"
    },
    "name": "generate_normal_map"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_layerNo
filenameYes
strengthNo
conventionNoopengl
layer_nameNo
frame_indexNo
use_luminanceNo
output_filenameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses output characteristics ('pixel-crisp, same size as the sprite, transparent where the sprite is') and the side effect that as_layer adds a hidden layer to the sprite. It stops short of stating whether the sprite file is saved/modified as a result, which matters given the mutation implied by as_layer.

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?

Front-loaded one-line purpose followed by a short mechanism sentence and a compact Args list; every line carries distinct information with no filler. The format matches the tool's complexity without padding.

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 an eight-parameter, no-annotation, no-output-schema tool, the definition covers purpose, derivation method, output shape, and every parameter's semantics. Remaining gaps are the file-state precondition and the fact that nothing describes what the call returns, which is a real omission given no output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 and it does: all eight parameters get meaning beyond their names, including the empty-string convention for layer_name ('' = all visible), numeric ranges for strength (0.3-3) and use_luminance (0-1), and the engine mapping for the convention string. This is exactly the information an agent cannot get from the bare 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?

Opens with a precise verb+resource+use case: 'Make a normal map of a sprite for dynamic 2D lighting in a game engine,' and even states how the form is derived (silhouette, colour areas, optional luminance). It is unambiguously distinct from the sibling generators (colour ramp, palette, particles), though it never names an alternative 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?

Usage context is implied by the lighting/game-engine framing and the convention param guidance ('Godot, Unity: green up' vs 'directx: green down') tells the agent which value to pick per target engine. However, there is no explicit when-to-use/when-not-to-use guidance and no stated preconditions (must the sprite be open in Aseprite? is the path relative?).

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