Skip to main content
Glama
construct2-mcp

construct2-mcp

by wjrosa

layer_add

Adds a layer to a Construct 2 project layout with configurable index (0 = bottom), opacity, visibility, parallax, and background color. Use it to build layered scenes and control draw order.

Instructions

Add a layer (index 0 = bottom). background_color is "r,g,b".

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": {
      "project": "<project>",
      "layout": "<layout>",
      "name": "<name>"
    },
    "name": "layer_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
indexNo
layoutYes
opacityNo
projectYes
visibleNo
parallaxNo
editor_syncNo
transparentNo
background_colorNo255,255,255

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden but discloses almost nothing: it does not say what happens when index is null (append to top?), whether the operation is reversible, whether editor_sync triggers a save or reload, or whether defaults like opacity=1 and visible=true are applied silently. Only the ordering convention and one color format are given.

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?

Two short sentences with no filler, and the most surprising detail (bottom indexing) is front-loaded in parentheses. It is efficient, though the terseness borders on under-specification rather than optimal concision.

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

Completeness2/5

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

For a 10-parameter mutation tool with no annotations, no output schema, and zero parameter documentation, this definition is far too thin. An agent knows the tool's name and one ordering rule but not the defaults' effects, failure modes, or required identifier formats.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 10 parameters, so the description must compensate, yet it explains only index (0 = bottom) and background_color ("r,g,b"). It says nothing about parallax, transparent, editor_sync, opacity ranges, or what project/layout identifiers should look like.

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 states a specific verb and resource ("Add a layer") and clarifies ordering semantics with "index 0 = bottom." The intent is distinguishable from layer_delete and layer_update by name and verb, though it never says which object the layer belongs to (project/layout), leaving that to the schema.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus layer_update or layer_delete, nor any statement of prerequisites such as whether the layout must exist or whether the editor must be open/synced. An agent must infer the insertion workflow entirely.

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