Skip to main content
Glama

export_tileset

DestructiveIdempotent

Export a tileset PNG with edge padding to prevent seams when tiles are scaled, optionally generating a matching Godot TileSet resource.

Instructions

Export a tileset PNG with extrude pixels of edge padding around each tile, which prevents seams when tiles are scaled.

The source is a tilemap layer's tileset (pass layer), or the flattened frame sliced into a tile_w x tile_h grid. When godot_project is given, out_png must be inside it and a matching TileSet .tres is written next to the PNG.

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": {
      "path": "<path>",
      "out_png": "<out_png>"
    },
    "name": "export_tileset"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
frameNo
layerNo
tile_hNo
tile_wNo
columnsNo
extrudeNo
out_pngYes
godot_projectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already flag this as a non-read-only, destructive, idempotent write with no open-world access. The description adds real value beyond that: it discloses the side effect of writing a matching TileSet .tres next to the PNG and the constraint that out_png must live inside godot_project. It does not mention what happens to pre-existing files at the destination.

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?

Three sentences, front-loaded with the output artifact and the padding rationale, then the source selection rule, then the godot_project constraint. No filler, though the padding-rationale clause is slightly parenthetical.

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

Completeness3/5

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

For a 9-parameter destructive export with no output schema, the description covers the important side effects and source modes well. It is still short on two parameters, notably the required `path`, and says nothing about the return value or overwrite behavior.

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 0%, so the description carries the full explanatory burden across 9 parameters. It usefully explains the layer-vs-frame source selection and the tile_w/tile_h grid plus extrude padding, but leaves the required `path` and the `columns` parameter completely undefined.

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?

States a specific verb and resource: export a tileset PNG with edge padding. It also names the two source modes (a tilemap layer's tileset, or a flattened frame sliced into a grid). It does not explicitly distinguish itself from nearby siblings like export_spritesheet or export_godot_spriteframes, so an agent must infer the difference from 'tileset' alone.

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

Usage Guidelines3/5

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

The description gives conditional guidance for selecting a source: pass `layer` for a tilemap tileset, or use `frame` for a flattened grid. It says nothing about when to prefer this over the sibling export tools, and gives no prerequisites beyond the godot_project path constraint.

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