Skip to main content
Glama

create_sprite

Creates a new sprite file with one layer and one frame at the specified path and dimensions, with an optional background color or transparent layer.

Instructions

Create a sprite file with one layer and one frame and return its info.

The format follows the extension: .aseprite keeps layers, frames, tags and slices; other formats hold one flat layer (.gif also keeps frames), and later edits they cannot store are refused. The folder must already exist. Without a background the layer is transparent.

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": "create_sprite"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesSprite file. Relative paths resolve against the server root.
widthYesWidth in pixels
heightYesHeight in pixels
overwriteNoReplace the file if it already exists
backgroundNoFill colour of the layer; default transparent
color_modeNoColour modergb

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does substantial work: it explains that the file format is inferred from the extension, that non-.aseprite formats collapse to one flat layer (except .gif, which keeps frames), and that later edits those formats cannot store are refused. It also discloses that a missing background yields a transparent layer and that the parent folder must pre-exist. It omits what happens when the target file already exists (overwrite behavior is only in the schema) and gives no sense of failure modes beyond the refusal note.

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?

Three short sentences, front-loaded with the core action and output shape before the format caveats. Every clause carries information an agent needs (format inference, capability limits, folder prerequisite, transparency default), and nothing is repeated from the schema.

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?

An output schema exists, so the description needn't detail the returned info, and it doesn't. For a creation tool with six parameters, the format-dependent behavior and folder prerequisite are the non-obvious parts, and both are covered. The remaining gap is the existing-file/overwrite interaction, which the description never touches and which matters for a create operation.

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 100%, so the baseline is 3, but the description adds real meaning beyond the schema: the path's extension determines the output format and its capabilities, which is not stated in the path parameter's own description. "Without a background the layer is transparent" reinforces the background parameter's default with the actual visual consequence. Width/height, overwrite, and color_mode get no added treatment, but they are well documented in 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?

The first sentence gives a specific verb and resource (create a sprite file) plus the exact shape produced: one layer and one frame. That distinguishes it from siblings like add_layer, add_frames, or create_slice, which modify or create sub-components rather than a whole sprite. It stops short of explicitly naming those alternatives, so it lands at 4 rather than 5.

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 description supplies a hard prerequisite ("The folder must already exist") and warns that format capability limits apply, which guides correct invocation. However, it never states when an agent should call this instead of, say, opening an existing sprite or building one with add_frames/add_layer. Usage is implied by the resource name rather than spelled out.

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