Skip to main content
Glama

Generate variants

generate_variants

Generate pixel-art variants of an existing sprite (in-app Variants), or edit it in place with keep_footprint. Source: asset_id (+ artboard_id/artboard_name for multi-artboard files) OR style_reference_id. Defaults when the user does not say: creativity creative, density quality, Variants (not Edit). State the assumptions you used; ask only for what cannot be inferred. Edit = keep_footprint true + custom_prompt (or color_mood alone to recolour only). Convert to Pixel Art = creativity "convert" (optional outline), e.g. on an image uploaded with upload_style_reference. Replace = creativity "replace" + custom_prompt naming the new object (e.g. "wooden barrel"). Results keep the source artboard size and are appended to the source file. A whole image on a background of its own (no transparent pixels) keeps that background with keep_background true; otherwise the area round the sprite is cut away. Only an off-center subject blocks (fix_preflight: true re-centers it); brush/size findings are advisory warnings (fix_preflight: "all" applies them). ~8 credits (HD).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_variants"
  }
}

Input Schema

NameRequiredDescriptionDefault
saveNoAppend finished artboards into the source library file (default true). From a style ref → create a new library file.
countNoOptional hard cap on variant count. Density (max/quality/quantity) sets the plan; when both are set, count is clamped to the plan’s effectiveCount. Prefer density.
labelsNoOptional per-variant names. Defaults to 'Variant 1'..N from the density plan. Same cap as the in-app label inputs (60 characters).
densityNomax (1) | quality (~3, default) | quantity (as many as fit). Edit (keep_footprint) forces max, and so does a source over 64 logical pixels (128 and up at 1px): one result per run, which keeps their 1px pixels clean. Up to 64 logical pixels max runs as quality (except Edit and Replace): beside the untouched source the pixels stay clean.
outlineNoOutline of the results. Convert: source (keep the image's own edge colours, default) | dark | palette-matched. Other Variants: source = a sprite drawn without an outline gets results without one; palette-matched = outlines in a darker shade of the colour they border; omitted = dark outlines.
asset_idNoSource library asset id (from list_assets). Provide this OR style_reference_id (in-app Variants reference-as-source).
set_nounNoFor creativity "set": category noun (e.g. "swords"). Default "items"; ignored otherwise.
folder_idNoOptional Files folder for a new library file when sourcing from style_reference_id.
reimagineNoEdit only: allow freer re-imagining (in-app Reimagine). Default false.
color_moodNoOptional recolour mood (same as the app). Omit to keep the source colours.
creativityNorecolor (Reskin) | creative (Reskin Creative, default) | set | custom (Prompted) | replace (Replace: swap the subject for the object named in custom_prompt at the same size, position and camera; one result) | convert (Convert to Pixel Art: redraw a photo, painting or soft/blurry image as clean pixel art, keeping its proportions, pose and layout; no custom_prompt). Edit (keep_footprint) forces custom.
project_idNoWhen sourcing from style_reference_id: project for the new library file (defaults like generate_pixel_art).
structuredNoFor a program that calls this tool from code: true also returns the result as data (structuredContent: the saved ids, the credits). Leave it out in a chat: some clients then show only that data and drop the previews.
artboard_idNoOptional artboard id from get_asset. Multi-artboard files need artboard_id or artboard_name to pick one sprite; omit for single-artboard assets.
color_policyNoPalette policy matching in-app ColorPolicyControl: "32"|"64"|"128"|"256" (max colors) or "none" (don't reduce). Default "128". Put palette caps here, not in the prompt.
artboard_nameNoOptional artboard name from get_asset (e.g. "rocks_crystal"). Alternative to artboard_id.
custom_promptNoRequired when creativity is 'custom' (Prompted / Edit) — subject/style instruction only. Put size on the source artboard (not '64x64' here); put palette caps in color_policy; omit 'no anti-aliasing' / 'crisp pixel clusters' lectures. Same cap as the in-app prompt box: longer text is trimmed to the first 1000 characters and the reply says so.
fix_preflightNotrue = re-center the subject for this run (the only blocking finding). "all" = also apply the advisory brush and artboard-resize fixes, which can change the output size. Default false. The saved library file is not changed.
project_styleNoStyle for this generation: "project" (default) draws set, replace and keep_footprint results in the game world of the account's active style (its brief, see get_style_profile), while recolor, creative, custom and convert keep the source's own look; "none" leaves the brief out for a one-off asset outside that world.
keep_footprintNotrue = Edit (in-place edit that keeps the silhouette; forces custom + single output; needs custom_prompt, or color_mood alone for a recolour-only edit). Default false = Variants.
keep_backgroundNotrue = the source is a whole image on a background of its own (sprites laid out on a flat colour, a scene): that background is kept as it is and nothing is cut away, so the result comes back as a whole image too. Needs a source with no transparent pixels that runs as one result: over 64 logical pixels, or Edit (keep_footprint). Not for convert or replace. Default false: the area round the sprite is cut away.
style_reference_idNoUse a References library image as the Variants source (same as in-app picking a style ref on Variants). Alternative to asset_id. Results save as a new library file. A sprite is drawn pixel for pixel: a 32, 64, 128 or 256px square canvas runs as it is, and on any other canvas (up to the area of 512×512) art that fits 256px is placed on a 64, 128 or 256px canvas and the results come back on the sprite's own. A photo or scene, larger art or a larger canvas is scaled to 32–256px.
preserve_compositionNoDefault true. Set false only when the user wants a freer layout.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / style_reference_id / description
      Previous value: -"Use a References library image as the Variants source (same as in-app picking a style ref on Variants). Alternative to asset_id. Results save as a new library file. A sprite on transparency whose art fits 256px is drawn pixel for pixel and its results come back on its own canvas, whatever its size; a photo or scene is scaled to 32–256px."New value: +"Use a References library image as the Variants source (same as in-app picking a style ref on Variants). Alternative to asset_id. Results save as a new library file. A sprite is drawn pixel for pixel: a 32, 64, 128 or 256px square canvas runs as it is, and on any other canvas (up to the area of 512×512) art that fits 256px is placed on a 64, 128 or 256px canvas and the results come back on the sprite's own. A photo or scene, larger art or a larger canvas is scaled to 32–256px."
  2. Changed2 schema fields changed
    • addedInput schema / properties / structured
      Added value: +{
      +  "description": "For a program that calls this tool from code: true also returns the result as data (structuredContent: the saved ids, the credits). Leave it out in a chat: some clients then show only that data and drop the previews.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / style_reference_id / description
      Previous value: -"Use a References library image as the Variants source (same as in-app picking a style ref on Variants). Alternative to asset_id. Results save as a new library file."New value: +"Use a References library image as the Variants source (same as in-app picking a style ref on Variants). Alternative to asset_id. Results save as a new library file. A sprite on transparency whose art fits 256px is drawn pixel for pixel and its results come back on its own canvas, whatever its size; a photo or scene is scaled to 32–256px."
  3. Changed1 schema field changed
    • addedInput schema / properties / keep_background
      Added value: +{
      +  "description": "true = the source is a whole image on a background of its own (sprites laid out on a flat colour, a scene): that background is kept as it is and nothing is cut away, so the result comes back as a whole image too. Needs a source with no transparent pixels that runs as one result: over 64 logical pixels, or Edit (keep_footprint). Not for convert or replace. Default false: the area round the sprite is cut away.",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / outline / description
      Previous value: -"creativity \"convert\" only: source (keep the image's own edge colours, default) | dark | palette-matched."New value: +"Outline of the results. Convert: source (keep the image's own edge colours, default) | dark | palette-matched. Other Variants: source = a sprite drawn without an outline gets results without one; palette-matched = outlines in a darker shade of the colour they border; omitted = dark outlines."
  5. Changed1 schema field changed
    • changedInput schema / properties / density / description
      Previous value: -"max (1) | quality (~3, default) | quantity (as many as fit). Edit (keep_footprint) forces max, and so does a source over 64 logical pixels (128 and up at 1px): one result per run, which keeps their 1px pixels clean."New value: +"max (1) | quality (~3, default) | quantity (as many as fit). Edit (keep_footprint) forces max, and so does a source over 64 logical pixels (128 and up at 1px): one result per run, which keeps their 1px pixels clean. Up to 64 logical pixels max runs as quality (except Edit and Replace): beside the untouched source the pixels stay clean."
  6. Changed1 schema field changed
    • changedInput schema / properties / density / description
      Previous value: -"max (1) | quality (~3, default) | quantity (as many as fit). Edit (keep_footprint) forces max."New value: +"max (1) | quality (~3, default) | quantity (as many as fit). Edit (keep_footprint) forces max, and so does a source over 64 logical pixels (128 and up at 1px): one result per run, which keeps their 1px pixels clean."
  7. Changed1 schema field changed
    • changedInput schema / properties / project_style / description
      Previous value: -"Style for this generation: \"project\" (default) draws the result in the game world of the account's active style (its brief, see get_style_profile); \"none\" leaves the brief out for a one-off asset outside that world."New value: +"Style for this generation: \"project\" (default) draws set, replace and keep_footprint results in the game world of the account's active style (its brief, see get_style_profile), while recolor, creative, custom and convert keep the source's own look; \"none\" leaves the brief out for a one-off asset outside that world."
  8. Changed2 schema fields changed
    • changedInput schema / properties / creativity / description
      Previous value: -"recolor (Reskin) | creative (Reskin Creative, default) | set | custom (Prompted) | replace (Replace: swap the subject for the object named in custom_prompt at the same size, position and camera; one result). Edit (keep_footprint) forces custom."New value: +"recolor (Reskin) | creative (Reskin Creative, default) | set | custom (Prompted) | replace (Replace: swap the subject for the object named in custom_prompt at the same size, position and camera; one result) | convert (Convert to Pixel Art: redraw a photo, painting or soft/blurry image as clean pixel art, keeping its proportions, pose and layout; no custom_prompt). Edit (keep_footprint) forces custom."
    • addedInput schema / properties / outline
      Added value: +{
      +  "description": "creativity \"convert\" only: source (keep the image's own edge colours, default) | dark | palette-matched.",
      +  "enum": [
      +    "source",
      +    "dark",
      +    "palette-matched"
      +  ],
      +  "type": "string"
      +}
  9. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations only declare readOnly=false, openWorld=true, idempotent=false, destructive=false; the description adds substantial context beyond them: results keep the source artboard size, are appended to the source file, save defaults to true, cost is ~8 credits (HD), and background handling is spelled out (keep_background requires no transparent pixels and a single-result run). It also separates the one blocking preflight finding (off-center subject) from advisory brush/size warnings and states that fix_preflight does not alter the saved library file.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence front-loads the core action well and almost every clause carries real information (defaults, mode mapping, cost, preflight severity). The structure, however, is a dense run-on block of dash-joined fragments that mixes routing, defaults, cost and caveats, making it hard to scan and partly redundant with the schema text.

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 23-parameter, no-output-schema generation tool the description covers source selection, all major modes, defaults, cost and result placement, which is close to complete. The notable gap is execution model: nothing says whether the call is synchronous or returns a job/asset id to fetch via get_generation_result, which matters for a tool with no output schema.

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 100%, so the schema already carries most parameter meaning and the baseline is 3. The description does add cross-parameter interaction guidance — Edit forces custom and a single output, color_mood alone permits a recolour-only edit, outline behaves differently for convert vs. other modes — but it largely restates defaults the schema already documents.

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 specific verb and resource ('Generate pixel-art variants of an existing sprite') and immediately splits the two operating modes, Variants vs. in-place Edit with keep_footprint. It does not, however, position itself against the closest siblings (generate_pixel_art, reskin_character); upload_style_reference and generate_pixel_art appear only as passing references, so an agent still has to infer which generation tool to pick.

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 explicit routing rules per mode: 'Edit = keep_footprint true + custom_prompt', 'Convert = creativity "convert"', 'Replace = creativity "replace" + custom_prompt', plus default assumptions (creative/quality/Variants). It also instructs 'ask only for what cannot be inferred'. What is missing is a negative rule — when not to use this tool and which sibling to use instead (e.g. a source-less generation).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources