Skip to main content
Glama

Add style set image

add_style_sample

Add one image to the user's active style kit (a style holds any number of images per type and size). Every sprite run anchors on the style's first character image at its size (the next type when it has none); Texture runs use its texture image. subject_category is the image's type and replaces that type's first image at that size; add:true keeps it and adds the image beside it; no subject_category adds an untagged image. image_id replaces that exact image. remove:true removes image_id (or, without it, the first image of subject_category at that size). With a MagicPixel style active, uploading makes the user's own copy of it (its images and brief) and activates it; with No style it creates "My style". The result says which. remove never creates one. Rules match the in-app editor: size 128 accepts a 128/256/512/1024 square on an exact 128-pixel grid (stored at 128); size 64 must be exactly 64×64; no soft (partly transparent) edges; max 2 MB. The active style's images steer the look and pixel size of EVERY generation (account-wide), unlike style_reference_id which only guides one call. Seed them from the game's existing art. The user edits the same images in the app (the style picker in Create with AI, ✎ on the style).

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

Input Schema

NameRequiredDescriptionDefault
addNoWith subject_category: add a further image of that type instead of replacing its first one.
sizeNoSize band the image calibrates (64 or 128). Omitted → 128.
removeNoRemove image_id (or the type's first image at that size) instead of uploading.
image_idNoA kit image id from get_style_set: replace it (with image_base64) or remove it (with remove).
image_base64NoPNG or JPEG (raw base64 or data URL). Required unless remove is true.
subject_categoryNoThe image's type (custom = untagged). Omitted → custom, or the replaced image's own type.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / add / description
      Previous value: -"With subject_category: add a further image of that type instead of replacing its anchor."New value: +"With subject_category: add a further image of that type instead of replacing its first one."
    • changedInput schema / properties / subject_category / description
      Previous value: -"The type the image frames (custom = untagged). A type without an image reads the next one in this order at the same size. Omitted → custom, or the replaced image's own type."New value: +"The image's type (custom = untagged). Omitted → custom, or the replaced image's own type."
  2. First observed

TDQS

A3.8/5.0
Behavior1/5

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

Annotations declare destructiveHint=false, but the description explicitly says remove:true 'removes image_id' or the type's first image, and that uploads can replace existing images. That directly contradicts the annotation, so this dimension is scored 1 per the rubric even though the description otherwise discloses side effects such as activating a copied MagicPixel style or creating 'My style'.

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?

Front-loads the core action and then packs the necessary mode, side-effect, and validation rules into a compact block. It is dense and semicolon-heavy, but for a six-parameter tool with add/replace/remove modes and account-wide style effects, most sentences earn their place.

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?

The definition covers active-style side effects, copy-on-upload behavior, removal semantics, validation rules, and the account-wide impact of style images, which is substantial for a complex mutation tool. With no output schema, it could still be more explicit about the returned result beyond 'The result says which,' so it is strong but not fully complete.

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 coverage is already 100%, but the description adds interaction semantics not captured by the schema: subject_category replaces that type's first image at the size, add:true adds beside it, omitting subject_category creates an untagged image, image_id replaces that exact image, and remove targets image_id or the first category image. It also explains size/grid and file constraints, making parameter behavior unusually well specified.

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?

Starts with 'Add one image to the user's active style kit'—a specific verb and resource—and then spells out the replace/add/remove variants. It also distinguishes the persistent active-style effect from style_reference_id, so an agent can tell this is a style-kit mutation rather than a one-off generation or reference upload.

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?

The description gives clear usage context: active style kit, seeding from existing art, in-app editing, and the fact that style images affect every generation unlike style_reference_id. It enumerates modes such as add:true, omitted subject_category, and remove:true, but does not explicitly state when not to use this tool or name an alternative tool for related style-reference operations.

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