Skip to main content
Glama
phaserjs

Phaser Editor MCP Server

Official
by phaserjs

scene-add-editable-tilemap-layer

Add a new layer to an editable tilemap, including an EditableLayer game object in the scene. Specify the layer's name, dimensions, and tile size.

Instructions

Add an editable tilemap layer to an editable tilemap. Because the complexity of the editable tilemaps, we provide a couple of dedicated tools. An editable tilemap is different to a Tiled map because all the data can be edited by the user in the scene editor. This method adds a layer to the tilemap data but also it adds an EditableLayer game object to the scene.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layerYes
sceneIdYesThe `id` of the scene. The `id` is not the name of the scene, else a unique identifier is set in the scene data. You need to read the scene data to get the `id`.
tilemapIdYesThe `id` of the editable tilemap to add the layer to. An 'editable tilemap' is not the same as a Tiled tilemap.
Behavior3/5

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

With no annotations, the description must carry the burden. It discloses that the tool adds both a layer to tilemap data and an EditableLayer game object to the scene. However, it does not mention prerequisites (e.g., existing editable tilemap) or side effects. The behavioral info is useful but incomplete.

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

Conciseness3/5

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

The description is five sentences with some redundancy (e.g., 'complexity' mentioned twice). It could be more concise while retaining key information. The most important action is front-loaded.

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?

Given no output schema, no annotations, and nested parameters, the description explains the tool's effect but lacks prerequisites, error conditions, and return value info. It covers the basic function but is not fully complete.

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?

The description adds value beyond the schema by noting that the layer name is used for code variable generation and that sceneId is a unique identifier requiring scene data. These details help the agent use parameters correctly.

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?

The description clearly states the verb 'Add' and the resource 'editable tilemap layer'. It distinguishes from Tiled maps and hints at dedicated tools, but does not explicitly differentiate from specific sibling tools like 'scene-fill-editable-tilemap-layer-data'.

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 mentions the complexity of editable tilemaps and that dedicated tools exist, but does not explicitly state when to use this tool versus alternatives. It provides context but no clear when-not or alternative references.

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/phaserjs/editor-mcp-server'

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