Skip to main content
Glama

generate_image

Creates game sprites, assets, tilesets, and UI art from prompts by inferring style, palette, type, size, and perspective; supports procedural pixel art when requested.

Instructions

Generate a game sprite/asset image. Infer every field from the request: art STYLE, colour PALETTE, asset TYPE, output SIZE and PERSPECTIVE; for characters also facing/pose/bodyType. Leave model out unless the user names one: the server then picks by size (flux2-klein, 1 credit, up to 64 px; gpt-image-2.5, 3 credits, from 96 px). Costs by model: flux2-klein 1, flux-juggernaut 1, seedream-5-flash 10, gpt-image-2.5 3, gpt-image-2.6 10, retro-diffusion 10, nano-banana-2 15 credits (a reference image makes it 2 and uses flux2-klein). ASSET SHEETS: type 'artwork' + model 'gpt-image-2.6' + size 2048 (20 credits) or '4k' (30 credits) draws one big picture holding a whole matching set (e.g. 'nine fantasy RPG items in a grid, clear space between them, plain light background') at full resolution; cut it into one asset per item with extract_parts save_as 'assets' (each cut-out a 1024 sprite). Call it once per request and show the result; ask the user before generating again (each call spends credits). Every image is drawn in exactly one of Voidless's fixed style presets, and the result says which one was used and why. Model 'free' is not AI: procedural pixel art drawn by code (item icons and loot sheets, RPG characters in 8 directions with animations, trees, plants and rocks), instant, 0 credits; use it only when the user asks for free or procedural pixel art or a quick placeholder, never by default (options in free).

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": {
      "prompt": "<prompt>",
      "type": "<type>"
    },
    "name": "generate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
freeNoOnly with model 'free': options of the procedural generator. Everything is optional and read from the prompt (plain words reach every option: "a wizard with blue hat and green robe holding sword and square face") when left out. A character also takes its parts by name (archetype, skin, hair, hairColor, top, topColor, legs, shoes, cape, headwear, held, offhand, fps...), items material and columns, nature and props shadow and columns, an animal its species, coat, coat2, pattern, markings, body_size, age, build, mane, horns, saddle, bridle, pack, armor, collar and tack_color.
poseNoCharacters, front or side view: 'idle' = relaxed stance with the arms down — the default, for animation sets, rotations and almost everything. 'tpose' = arms held straight out — ONLY when the user asks for a T-pose (e.g. to rig the character in the skeleton editor).idle
seedNoRNG seed (0 = random)
sizeNoOutput px. 32, 48, 64, 96, 128, 192, 256 and 384 give pixel art; 512 for every other style; 768 for a sharper smooth sprite (drawn at 1024, stored at 768); 1024 for high-res. 144 is ONLY for type 'tileset' with tilesetKind 'platformer' (the side-view 3x3 sheet): nine 48 px pixel-art tiles (96 gives 32 px tiles, 192 gives 64 px). 2048 and '4k' are ASSET-SHEET sizes, only for type 'artwork' with model 'gpt-image-2.6' in a smooth (not pixel) style: 2048 = 2048x2048 (aspect '16:9': 2560x1440), '4k' = 2880x2880 (aspect '16:9': 3840x2160), kept at that size. For a set of matching assets to cut apart with extract_parts save_as 'assets'.
typeYes'character' = full-body sprite (uses facing/pose/bodyType); 'character portrait' = headshot; 'object' = props and items; 'artwork' = scenes/backgrounds; 'tileset' = a terrain tile sheet (always GPT-Image, see tilesetKind; below 512 it is drawn at 512 and pixelated); 'ui' = interface pieces (see uiMode).
modelNoOnly when the user names a model. Left out, the server picks by size: flux2-klein up to 64 px, gpt-image-2.5 from 96 px. 'free' = procedural pixel art drawn by code, 0 credits, only when the user asks for free or procedural art.
styleNoStyle preset: pixel-art, cartoon, cel-shading, flat, hand-drawn, paper-cutout, comic-book, anime, watercolor, low-poly, 3d-render, claymation, photorealistic, voxel. Always ends up as one of these: another value is mapped to the nearest preset ('watercolour', '8-bit', 'realistic'), or the default if none fits. Empty = the preset the prompt names, at 512/1024 for non-pixel styles (at 32-384 the result is pixel art); otherwise pixel art below 512, cartoon at 512/1024.
aspectNotype 'artwork' at size 512, 1024, 2048 or '4k' only: '16:9' for a backdrop, scene or game background (1344x756 at 1024, 672x378 at 512; pixel-art styles come out on a 4 px grid, 672x376 at 512; 2560x1440 at 2048, 3840x2160 at '4k'). Smaller sizes, Retro Diffusion and everything that is not artwork are always 1:11:1
facingNoCharacters: front view or side profile. Side profiles rotate best.forward
promptYesThe subject (max 300 chars; an asset sheet, type 'artwork' at size 2048 or '4k', up to 1000 so each item and its view can be named). Prefer the style/palette fields; if style is empty, a style the prompt names (e.g. 'watercolour frost mage', 'a cel-shaded golem') picks that preset and those words are taken out of the prompt, so the preset's own style words are the only ones the model sees.
uiModeNotype 'ui' only: 'graphic' = button/panel/HUD piece, 'title' = game-title wordmark spelling the prompt, 'text' = plain label spelling the promptgraphic
paletteNoColour-scheme preset, independent of style. 'none' = the palette the prompt names (e.g. 'in a neon palette', 'greyscale'), else the style's own colours. Pixel art (32-384 px, or a pixel style) is also held to the preset's colours: gameboy (the 4 DMG greens), cga (4), pico8 (16 fixed), c64 (16 fixed), nes (16 from the NES set), endesga32 (32 fixed), black-and-white (5 greys), sepia (8); retro, earthy, sunset, ice, dungeon, forest, desert, candy and cyberpunk set the mood and cap the colours (12-16). Edits, rotations and animations of the asset keep its palette. There is no colour-count setting: Voidless picks it by size.none
bodyTypeNoCharacters: body planhumanoid
dimensionNo'2d' = side view, 'top down' = overhead, 'isometric' = 2.5D2d
styleImageNoOptional image whose art style to copy: an image key from one of your assets (get_asset lists them, e.g. assets/64/images/<id>.png) or its cdn.voidless.dev URL. The server loads it at full resolution. Prefer this (or styleAssetId) over base64: get_image_data only returns a small thumbnail. With gpt-image-2.6 the picture itself is shown to the model; other models get a description of its style
tilesetKindNotype 'tileset' only: 'platformer' = side-view 3x3 ground sheet (default for 2d); 'wang' = top-down two-terrain 4x5 auto-tile sheet in the free Tileset Generator's layout (default for top down; name both terrains, e.g. 'a cobblestone path in grass'), every edge matched so any arrangement tiles seamlessly; 'blob17' = top-down 17-piece sheet of one terrain on transparent. Top-down sheets have 256 px tiles; a pixel size returns pixel tiles at that size (up to 256)
styleAssetIdNoOptional: the id of one of your image assets whose art style to copy (its main image, full resolution). Same as passing its image key as styleImage
referenceImageNoOptional raw base64 image (no data: prefix) to base the result on

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.1.1
    • addedInput schema / properties / free
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Only with model 'free': options of the procedural generator. Everything is optional and read from the prompt (plain words reach every option: \"a wizard with blue hat and green robe holding sword and square face\") when left out. A character also takes its parts by name (archetype, skin, hair, hairColor, top, topColor, legs, shoes, cape, headwear, held, offhand, fps...), items material and columns, nature and props shadow and columns, an animal its species, coat, coat2, pattern, markings, body_size, age, build, mane, horns, saddle, bridle, pack, armor, collar and tack_color.",
      +  "properties": {
      +    "animations": {
      +      "description": "character, animals: what to draw (default still; animals have no jump)",
      +      "items": {
      +        "enum": [
      +          "still",
      +          "idle",
      +          "walk",
      +          "run",
      +          "jump",
      +          "attack",
      +          "hurt",
      +          "death"
      +        ],
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "biome": {
      +      "description": "nature: colours and mix",
      +      "enum": [
      +        "forest",
      +        "autumn",
      +        "winter",
      +        "desert",
      +        "swamp",
      +        "tropical"
      +      ],
      +      "type": "string"
      +    },
      +    "color": {
      +      "description": "items: a plain colour for every item: red, orange, yellow, green, blue, purple, pink, black or white; nature: the leaves, petals, caps, crystals or rocks, a colour name or a hex",
      +      "type": "string"
      +    },
      +    "count": {
      +      "description": "items, nature, props: how many sprites on the sheet",
      +      "maximum": 256,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "directions": {
      +      "description": "character, animals: only these directions (down, down-right, right, up-right, up, up-left, left, down-left)",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "element": {
      +      "description": "items, character: fire, ice, poison, holy, shadow, lightning, arcane, nature, blood",
      +      "type": "string"
      +    },
      +    "heldColor": {
      +      "description": "character: what the held item is made of: steel, gold, red, blue, green, purple, black, white, bone, wood or a hex colour",
      +      "type": "string"
      +    },
      +    "kind": {
      +      "description": "What to draw: items (icons and loot), character (an RPG character with directions and animations), nature (trees, plants, rocks), props (barrels, furniture, dungeon and sci-fi objects) or animals (four-legged animals and creatures, from a mouse to a dragon, with directions and animations). Default: from type and the prompt",
      +      "enum": [
      +        "items",
      +        "character",
      +        "nature",
      +        "props",
      +        "animals"
      +      ],
      +      "type": "string"
      +    },
      +    "lit": {
      +      "description": "props: fires, lamps and screens lit or out (default: the seed decides)",
      +      "type": "boolean"
      +    },
      +    "open": {
      +      "description": "props: chests, doors and coffins open or closed (default: the seed decides)",
      +      "type": "boolean"
      +    },
      +    "outline": {
      +      "description": "colored (default), none, black, white or a hex colour",
      +      "type": "string"
      +    },
      +    "rarity": {
      +      "description": "items: common, uncommon, rare, epic, legendary or random",
      +      "type": "string"
      +    },
      +    "save": {
      +      "description": "Also save the result to the library (free, private)",
      +      "type": "boolean"
      +    },
      +    "scale": {
      +      "description": "Scale the returned images up, nearest neighbour (default 1)",
      +      "maximum": 8,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "seed": {
      +      "description": "Same seed and options, same result (default: random)",
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "size": {
      +      "description": "Sprite px: items 16, 24 or 32; nature and props 16, 32, 48 or 64; platformer character 48 (compact) or 64 (long-legged) (default: generate_image's size when it is one of these)",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "species": {
      +      "description": "character: human, elf, dwarf, goblin, orc, skeleton, zombie, wolf, cat, lizard, demon, mushroom, robot, ghost, vampire, fairy, angel, slime, bear, fox, rabbit, bird, frog, pig, minotaur, treant, golem, alien, snowman, scarecrow, pumpkin, mummy, imp, ogre, gnome, halfling, fish, insect",
      +      "type": "string"
      +    },
      +    "style": {
      +      "description": "Pixel-art look (default shaded; bold for a platformer character)",
      +      "enum": [
      +        "shaded",
      +        "flat",
      +        "handheld",
      +        "8bit",
      +        "soft",
      +        "dark",
      +        "bold"
      +      ],
      +      "type": "string"
      +    },
      +    "theme": {
      +      "description": "props: materials, colours and mix",
      +      "enum": [
      +        "village",
      +        "dungeon",
      +        "royal",
      +        "haunted",
      +        "desert",
      +        "snow",
      +        "scifi"
      +      ],
      +      "type": "string"
      +    },
      +    "trunk_color": {
      +      "description": "nature: the trunk, bark or stem, a colour name or a hex",
      +      "type": "string"
      +    },
      +    "types": {
      +      "description": "items: sword, potion, shield...; nature: oak, pine, willow, bush, rock, flower...; props: barrel, crate, table, pillar, terminal...",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "view": {
      +      "description": "character: topdown (3/4 RPG, 8 directions), platformer (side view, right and left) or tall. Default: from the prompt, else from dimension ('2d' platformer, otherwise topdown)",
      +      "enum": [
      +        "topdown",
      +        "platformer",
      +        "tall"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / model / description
      Previous value: -"Only when the user names a model. Left out, the server picks by size: flux2-klein up to 64 px, gpt-image-2.5 from 96 px."New value: +"Only when the user names a model. Left out, the server picks by size: flux2-klein up to 64 px, gpt-image-2.5 from 96 px. 'free' = procedural pixel art drawn by code, 0 credits, only when the user asks for free or procedural art."
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "flux2-klein",
      -  "gpt-image-2.5",
      -  "gpt-image-2.6",
      -  "seedream-5-flash",
      -  "nano-banana-2",
      -  "retro-diffusion",
      -  "flux-juggernaut"
      -]New value: +[
      +  "flux2-klein",
      +  "gpt-image-2.5",
      +  "gpt-image-2.6",
      +  "seedream-5-flash",
      +  "nano-banana-2",
      +  "retro-diffusion",
      +  "flux-juggernaut",
      +  "free"
      +]
    • changedInput schema / properties / size / anyOf
      Previous value: -[
      -  {
      -    "const": 32,
      -    "type": "number"
      -  },
      -  {
      -    "const": 48,
      -    "type": "number"
      -  },
      -  {
      -    "const": 64,
      -    "type": "number"
      -  },
      -  {
      -    "const": 96,
      -    "type": "number"
      -  },
      -  {
      -    "const": 128,
      -    "type": "number"
      -  },
      -  {
      -    "const": 192,
      -    "type": "number"
      -  },
      -  {
      -    "const": 256,
      -    "type": "number"
      -  },
      -  {
      -    "const": 384,
      -    "type": "number"
      -  },
      -  {
      -    "const": 512,
      -    "type": "number"
      -  },
      -  {
      -    "const": 768,
      -    "type": "number"
      -  },
      -  {
      -    "const": 1024,
      -    "type": "number"
      -  },
      -  {
      -    "const": 2048,
      -    "type": "number"
      -  },
      -  {
      -    "const": "4k",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "const": 32,
      +    "type": "number"
      +  },
      +  {
      +    "const": 48,
      +    "type": "number"
      +  },
      +  {
      +    "const": 64,
      +    "type": "number"
      +  },
      +  {
      +    "const": 96,
      +    "type": "number"
      +  },
      +  {
      +    "const": 128,
      +    "type": "number"
      +  },
      +  {
      +    "const": 192,
      +    "type": "number"
      +  },
      +  {
      +    "const": 256,
      +    "type": "number"
      +  },
      +  {
      +    "const": 384,
      +    "type": "number"
      +  },
      +  {
      +    "const": 144,
      +    "type": "number"
      +  },
      +  {
      +    "const": 512,
      +    "type": "number"
      +  },
      +  {
      +    "const": 768,
      +    "type": "number"
      +  },
      +  {
      +    "const": 1024,
      +    "type": "number"
      +  },
      +  {
      +    "const": 2048,
      +    "type": "number"
      +  },
      +  {
      +    "const": "4k",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / size / description
      Previous value: -"Output px. 32, 48, 64, 96, 128, 192, 256 and 384 give pixel art; 512 for every other style; 768 for a sharper smooth sprite (drawn at 1024, stored at 768); 1024 for high-res. 2048 and '4k' are ASSET-SHEET sizes, only for type 'artwork' with model 'gpt-image-2.6' in a smooth (not pixel) style: 2048 = 2048x2048 (aspect '16:9': 2560x1440), '4k' = 2880x2880 (aspect '16:9': 3840x2160), kept at that size. For a set of matching assets to cut apart with extract_parts save_as 'assets'."New value: +"Output px. 32, 48, 64, 96, 128, 192, 256 and 384 give pixel art; 512 for every other style; 768 for a sharper smooth sprite (drawn at 1024, stored at 768); 1024 for high-res. 144 is ONLY for type 'tileset' with tilesetKind 'platformer' (the side-view 3x3 sheet): nine 48 px pixel-art tiles (96 gives 32 px tiles, 192 gives 64 px). 2048 and '4k' are ASSET-SHEET sizes, only for type 'artwork' with model 'gpt-image-2.6' in a smooth (not pixel) style: 2048 = 2048x2048 (aspect '16:9': 2560x1440), '4k' = 2880x2880 (aspect '16:9': 3840x2160), kept at that size. For a set of matching assets to cut apart with extract_parts save_as 'assets'."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (readOnly=false, idempotent=false, non-destructive), the description discloses that every call spends credits with a per-model price list, that a reference image doubles the cost and switches to flux2-klein, and that the server auto-selects a model by size. What it does not cover is the shape of the returned payload beyond a note that the result reports which style preset was used and why.

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?

Purpose and the operational rules are front-loaded, but the text is a dense wall of all-caps emphasis and duplicates itself: the flux2-klein/gpt-image-2.5 size-and-credit mapping appears once in the model sentence and again in the 'Costs by model' list. Much of the price enumeration restates what the model enum already conveys.

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 18-parameter, 8-model tool with no output schema, the description covers the decision-relevant ground: model selection policy, credit economics, the asset-sheet pipeline end to end, and the free-mode alternative. It stops short of describing error/limit behaviour (the 1000-char prompt cap lives only in the schema) and any permission requirements.

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 already 100% and highly detailed, so the baseline is 3; the description still adds real meaning with the size-to-model mapping, the

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?

Opens with a concrete verb+resource ('Generate a game sprite/asset image') and immediately scopes it against siblings by naming extract_parts for the cut-out step and warning that model 'free' is procedural pixel art rather than AI generation. An agent can tell what this tool produces and what it does not without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when/when-not rules: leave model out unless the user names one, use 'free' only when the user asks for free/procedural/placeholder and 'never by default', and call it once per request, asking the user before generating again. It also prescribes the follow-on tool (extract_parts save_as 'assets') for the asset-sheet workflow, so routing decisions are spelled out rather than inferred.

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