Skip to main content
Glama

export_game_asset_bundle

Destructive

Export an Aseprite sprite as a game-ready bundle: flattened PNG, animated GIF, packed sprite sheet with JSON, per-tag GIFs, and manifest.json. Art is assessed first, so defects can block the export.

Instructions

Export a sprite into a game-ready bundle directory: a flattened PNG, an animated GIF, a packed sprite sheet (+ JSON data), a GIF per animation tag, and a manifest.json describing everything.

**The art is judged before anything is written.** Every frame is assessed the way
`assess_sprite` judges one (all of them in one launch, identical frames once), and
the result is the manifest's `assessment` section. A *defect* refuses the bundle: an
absent keyline on a figure of several masses, or, with `ramp`, a drawn pixel that is
not on it. Those are the readings that scored as faults against sprites known to be
good and bad. Every other reading is an *observation*, listed and never blocking,
because observations do not separate good art from poor: on this project's own
gallery its best sheet draws three and a featureless blob none. So a clean assessment
means none of the measured faults, not that the art is good; looking at
`render_preview` is still the only judge of that.

Args:
    overwrite: Replace existing bundle files (default False = no-clobber). Every
        planned output is checked up front, so the bundle fails before writing any
        file if a target already exists.
    ramp: The colours the art is drawn from, as given to `assess_sprite`. When set,
        every drawn pixel must be one of them. Refused before anything is launched
        past the colour-list cap or in a notation that does not parse. On an indexed
        sprite whose palette cannot hold it exactly, `assessment.palette` says so,
        and a refusal for pixels off it carries that reading.
    allow_defects: Bundle even when the assessment finds a defect (default False).
        The defects are then the manifest's `warnings`, and `assessment.waived` is
        true.
    subject: "character" (the default) or "prop", as `assess_sprite` takes it. A
        prop is not given the limb or keyline readings, so a vase or a lantern whose
        narrowings are its shape is not refused for a missing keyline between masses
        it does not have; a pixel off `ramp` still refuses it. Anything else is
        refused before anything is launched or written.

Returns a ``workflow_manifest.v1`` manifest (the same object is also written to
disk as manifest.json inside the bundle).

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>"
    },
    "name": "export_game_asset_bundle"
  }
}

Input Schema

NameRequiredDescriptionDefault
rampNo
scaleNoDefault: 1.
subjectNoDefault: "character".character
filenameYes
overwriteNoDefault: false.
bundle_nameNo
allow_defectsNoDefault: false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.11.0
    • addedInput schema / properties / allow_defects
      Added value: +{
      +  "default": false,
      +  "description": "Default: false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / ramp
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / subject
      Added value: +{
      +  "default": "character",
      +  "description": "Default: \"character\".",
      +  "type": "string"
      +}
  2. Changed10 schema fields changedv0.10.0
    • removedInput schema / properties / bundle_name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / bundle_name / default
      Removed value: -null
    • removedInput schema / properties / bundle_name / title
      Removed value: -"Bundle Name"
    • addedInput schema / properties / bundle_name / type
      Added value: +"string"
    • removedInput schema / properties / filename / title
      Removed value: -"Filename"
    • addedInput schema / properties / overwrite / description
      Added value: +"Default: false."
    • removedInput schema / properties / overwrite / title
      Removed value: -"Overwrite"
    • addedInput schema / properties / scale / description
      Added value: +"Default: 1."
    • removedInput schema / properties / scale / title
      Removed value: -"Scale"
    • removedInput schema / title
      Removed value: -"export_game_asset_bundleArguments"
  3. First observedv0.7.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, but the description adds the genuinely useful detail: every planned output is checked up front and the bundle fails before any file is written, so existing files are only replaced under overwrite. It further discloses the validation gate (assessment judged before anything is written, defects vs non-blocking observations, allow_defects moving defects into manifest warnings with assessment.waived=true), plus palette-index honesty in assessment.palette. This is behavior well beyond the annotations and consistent with them.

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?

Structure is strong: purpose and outputs first, then the judging/refusal rule, then a per-argument list, then the return type. A few passages are more rhetorical than operational (the aside about the project's gallery and a featureless blob, the repeated reminder that assessment is not a quality judgement), but they do carry the important distinction between blocking defects and non-blocking observations.

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 complex, write many files, validating tool with no output schema, the description covers the return type (workflow_manifest.v1, also written to manifest.json on disk), the refusal semantics and the destructive-file behavior thoroughly. The remaining gap is the unmentioned scale and filename/bundle_name parameters, which the agent must infer from the schema alone.

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 57%, and the description compensates well for four parameters, giving overwrite, ramp, allow_defects and subject precise meanings including edge cases (colour-list cap, unparseable notation, indexed-palette approximation, invalid subject refused before launch). However, the required filename parameter and bundle_name are never explained, and scale is entirely absent from the description despite being a meaningful output-modifying integer with only a default-value stub in the schema. Half the semantics are excellent, half are missing.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (export) and resource (a sprite, as a game-ready bundle directory) and enumerates exactly what is produced: flattened PNG, animated GIF, packed sprite sheet plus JSON, a GIF per animation tag, and manifest.json. That enumeration implicitly distinguishes it from the single-artifact siblings (export_png, export_gif, export_spritesheet) and from validate_sprite_for_game_export, because it is clearly a one-shot bundle writer with validation built in.

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?

It gives clear conditions: default is no-clobber, the pre-flight check fails before writing, allow_defects is the escape hatch when a defect should not block, subject switches the reading set for props, and render_preview remains the only judge of aesthetic quality. It does not explicitly say "use this instead of calling export_png/export_gif/export_spritesheet separately", so the alternative-selection guidance is implied by the output list rather than stated.

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