Skip to main content
Glama
Redseb
by Redseb

set_tile_flags

Edit tile flags for passability, terrain, and behaviors (star, ladder, bush, counter, damage) in RPG Maker MZ tilesets, merging changes while preserving unrelated settings.

Instructions

Edit a tile's passability/terrain/behaviour flags in a tileset's flags[] array (the write side of get_tile_flags). Only the fields you pass change — everything else on the tile is preserved (a non-destructive merge onto the current flag word). passage is walkability (down/left/right/up, true = a character can walk off that way). Also settable: star ([*] overlay), ladder, bush, counter, damage (damage floor), and terrainTag (0–7). For an autotile id (A1–A4) the change is applied to all 48 shape slots of its kind by default (set applyToAutotileKind:false to touch only the exact id) so painting any border shape keeps the same passability. Writes data/Tilesets.json through the commit choke point (dry-run/diff). Returns { tilesetId, tileId, appliedTileCount, before, after }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bushNo
starNo[*] overlay: tile drawn above the character.
damageNoDamage floor (standing on it hurts).
dryRunNoPreview only: return a diff of what would change without writing to disk.
ladderNo
tileIdYesThe raw tile id whose flags to edit
counterNo
passageNoWalkability per direction (true = walkable). Only the given directions change.
tilesetIdYesTileset id (from Tilesets.json / the map)
terrainTagNoTerrain tag 0–7 (0 = none).
applyToAutotileKindNoWhen the tile is an autotile (A1–A4), apply the change to all 48 shape slots of its kind (default true). Ignored for flat tiles.
Behavior5/5

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

With no annotations, the description fully discloses mutation behavior: non-destructive merge, autotile-kind application, commit choke point with dry-run/diff, and the return shape. This goes well beyond minimal transparency for a write tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is information-dense but every sentence earns its place: purpose, merge behavior, key parameter semantics, autotile special case, write path, and return shape. It is front-loaded and efficiently structured.

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 tool's complexity (11 parameters, nested passage object, autotile behavior, and no output schema), the description covers all essential aspects: what the tool does, how it behaves, special autotile handling, and the exact return payload. It is a complete picture for an agent to invoke it correctly.

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 73%, so the description adds value by explaining passage directions, star/damage semantics, terrainTag range, and the applyToAutotileKind behavior. This compensates for undocumented parameters like bush/ladder/counter, though those remain self-explanatory booleans.

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 clearly states the tool edits tile passability/terrain/behaviour flags in a tileset's flags[] array, which is a specific verb+resource. It also distinguishes itself as the 'write side of get_tile_flags', differentiating it from the read tool and sibling editing tools.

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 provides clear context by positioning this as the write counterpart to get_tile_flags, implying when to use it. However, it does not explicitly name alternative tools or state when not to use it, such as set_map_tile for broader tile edits.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Redseb/rpgmaker-mz-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server