Skip to main content
Glama

Open the SpriteForge tileset editor

open_tileset_editor

Opens a tileset in SpriteForge's tileset editor as an interactive card where the app shows them, and returns an edit link that opens the same editor in a browser. For a Wang autotile set (16 tiles; tile i is drawn where the map cells at its corners are painted, NW=1 NE=2 SW=4 SE=8, so tile 15 is the solid base) the user paints a small map to see the tiles chain, draws on the map or on single tiles, and edits the base texture, which re-derives the edge tiles (tiles drawn by hand stay); a platformer set (49 tiles) is edited tile by tile. With session_id it opens a tileset that's already in an edit session, and kind (wang = flat floor terrain, wall, iso) switches that Wang set's preview, keeping its tiles and the user's edits. Otherwise it makes a new set from kind (wang, wall, iso or platformer; default wang) plus palette + tiles (16 or 49 grids in mask order), palette + base (a seamless square texture; the 16 Wang tiles are derived from it as SpriteForge does), png_base64 (a tileset sheet or a texture), or size alone for a blank set. With png_base64 and no layout, a 16x1 image is a strip, and a square one is a 4x4 sheet when its tiles look like a Wang set in mask order (tile 0 empty, or nearly every tile's corners matching tile 15 where its mask has that corner and tile 0 where it doesn't), else a texture. The result says which view it opened and how it read the PNG. The user's edits save to the edit session.

Input Schema

NameRequiredDescriptionDefault
baseNoA square seamless texture to derive a Wang set's 16 tiles from.
kindNowang (flat floor terrain), wall (Wang walls), iso (isometric Wang) or platformer. For a new set, default wang. With session_id, wang, wall or iso switches that Wang set's preview, keeping its tiles; a Wang set can't become a platformer set or the other way round.
nameNoThe set's name.
sizeNoTile size for a blank set (default 32).
tilesNoThe set's tiles in mask order (16 for Wang kinds, 49 for platformer), palette indexes, -1 transparent.
layoutNoHow to read png_base64: sheet (4x4 Wang sheet, or a platformer set's 7x7), strip (16x1) or texture (a square base texture the 16 Wang tiles are derived from). Default: guessed from the image (see the tool description).
paletteNoHex colours for tiles or base.
png_base64NoA tileset PNG (a Wang set's 4x4 sheet or 16x1 strip, a platformer set's 7x7 sheet) or a square texture, base64.
session_idNoAn existing tileset edit session, or an edit link containing ?s=<id>. Give kind with it to change a Wang set's preview; the other fields are for a new set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The annotations mark this as non-read-only, non-destructive, and non-idempotent, and the description adds substantial behavioral detail beyond that: edits save to the edit session, kind with session_id preserves tiles and user edits, and editing a base texture re-derives edge tiles while keeping hand-drawn tiles. It also explains the interactive card and edit link return behavior, which matters for an editor-opening mutation tool.

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?

The purpose is front-loaded, and the dense detail is justified by the tool's complexity and nine parameters. However, the description is a single long paragraph with many conditional clauses, which makes it harder to scan than a structured breakdown would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the high complexity, 100% schema coverage, and no output schema, the description is complete enough: it covers the editor modes, the new-set versus session behaviors, Wang derivation rules, PNG layout inference, and a summary of what the result reports. No critical calling behavior appears to be missing.

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 description coverage is 100%, so the schema already carries the baseline parameter definitions. The description still adds real semantic value by explaining parameter combinations and conditional behavior, such as session_id plus kind changing a Wang preview, the valid new-set input combinations, and how png_base64 is inferred as strip, sheet, or texture when layout is absent.

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 states a specific verb and resource: opening a tileset in SpriteForge's tileset editor as an interactive card and returning an edit link. It distinguishes Wang autotile behavior from platformer tile-by-tile editing, and it contrasts session continuation with creating a new set, so an agent can separate it from the sprite-oriented sibling editors.

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 context for the main parameter modes: use session_id for an existing edit session, give kind with session_id to switch a Wang preview, and otherwise supply kind plus palette/tiles, palette/base, png_base64, or size to create a new set. It does not explicitly compare against sibling tools such as open_sprite_in_editor or open_full_editor, so it stops short of full alternative routing.

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