Skip to main content
Glama

Create 16-tile tileset

createTileset

Build a 16-tile tileset from seamless base tiles: every arrangement a map needs, so the edges and corners fall into place when a map is painted with it. kind terrain (the default) blends terrain A (tile_a, required) into terrain B (tile_b; leave it out and the tiles are cut out there, transparent, for floors over a void or islands), with the boundary described in transition (e.g. white sea foam, a low stone curb): its 16 tiles cover every way the two terrains meet at a tile's four corners. kind lines lays a line (tile_b, required: a strip or scatter made by createTile, or a ground tile of the line's material) over a ground (tile_a, optional: without it the set is a transparent overlay), in every dead end, straight, turn, T and crossing: its 16 tiles cover every way the line leaves a tile by its four sides. Both tiles must be for the set's grid. Pass tiles as the url createTile returned (the tile is then read with its type, which gives the best result) or as any image by URL or base64, uploaded and limited to 15MB; an image that does not repeat seamlessly is rejected. shape sets the outline of the boundary and save_normals adds a normal map of the whole atlas. The job result is one tileset: atlas_url (a 4 x 4 atlas of the 16 tiles, each tile_width x tile_height), normal_map_url when asked, and tiles, each with its row and column on the atlas and its corner terrains or line sides, which is what an engine's autotile or terrain setup is built from. In Godot, a terrain set's tiles match by corners and a line set's by sides; fill the map with one terrain's full tile first, then paint the other, since a set has no tile for a terrain next to an empty cell. Change a whole set afterwards with editTileset. Credits are held when the job is accepted and refunded if it fails or is cancelled. Pass an optional request_id to tag the result so you can retrieve it later via listGenerations (type tileset). Async generation job: returns {id, status} - poll getApiJob (job and credit contract: see the server instructions).

Credits: This endpoint consumes 1 credits per call.

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": {
      "requestBody": "<requestBody>"
    },
    "name": "createTileset"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestBodyYesPayload for building a 16-tile tileset from seamless base tiles

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare that this is a non-read-only, non-destructive, non-idempotent job, so the description carries real weight and delivers: async execution returning {id, status}, the 1-credit charge held at acceptance and refunded on failure or cancellation, the 15MB upload cap, and rejection of non-seamless images. It also discloses the request_id dedupe behavior and that normal maps cost nothing extra — details an agent could not infer from the annotations.

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?

Purpose and both modes are front-loaded, and the closing sentences (async job, credits) correctly come last. Sentences are long and clause-stacked — the tile_a/tile_b sourcing rule is stated twice — so it scans more like prose than a spec, but almost no sentence is expendable given the tool's complexity.

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?

With no output schema, the description fully specifies the result shape (atlas_url as a 4x4 atlas of tile_width x tile_height, optional normal_map_url, and per-tile row/column plus corner terrains or line sides) and how an engine consumes it (Godot terrain matches by corners, line sets by sides). Nothing an agent needs to call this correctly or use the output is 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 coverage is already 100%, yet the prose still adds meaning by tying parameters to intent: tile_a/tile_b swap roles between the terrain and lines kinds, transition changes meaning per kind (boundary look vs. how a set is built from a line), and both tiles must match the set's grid. Some passages restate schema text (the 15MB limit, transition examples), which keeps it off a 5.

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 specific verb+resource: "Build a 16-tile tileset from seamless base tiles," then splits the tool into its two concrete modes (terrain blending vs. line/road sets) with the exact 16-tile coverage each produces. An agent can distinguish this from createTile (makes base tiles) and editTileset (changes an existing set) without reading any 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?

Explicit routing rules: which of tile_a/tile_b is required or optional per kind, what happens when tile_b is omitted, and how to source inputs ("the url createTile returned" vs. arbitrary URL/base64). It names the follow-on alternatives directly — editTileset for whole-set changes, listGenerations with type tileset for retrieval, getApiJob for polling — and adds a non-obvious workflow rule (paint one terrain's full tile before the other, since there is no tile for terrain next to an empty cell).

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.