Skip to main content
Glama
construct2-mcp

construct2-mcp

by wjrosa

instance_add

Places an object instance in a Construct 2 layout with position, properties, variables, and behaviors, returning its UID for further editing.

Instructions

Place an instance. properties: plugin properties ({"text": "Hi", "initial-visibility": "Invisible"}); variables: instance variable values; behaviors: {"Platform": {"max-speed": 400}}. Returns it with its uid.

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>",
      "object": "<object>"
    },
    "name": "instance_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
angleNo
layerNo
widthNo
heightNo
layoutYes
objectYes
opacityNo
projectYes
behaviorsNo
variablesNo
propertiesNo
editor_syncNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It only states that the new instance is returned with its uid; it says nothing about side effects on the target layout, editor synchronization, permission requirements, or what happens on name collisions.

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?

The definition is front-loaded with the core action and then adds only parameter notes, with no filler. It is telegraphic to the point of being slightly cryptic, but every fragment carries information.

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?

It confirms a return value (the instance with its uid) and gives example payloads for the three dictionary-valued parameters, which is genuinely helpful. For a 14-parameter creation tool with no annotations and no output schema, however, the definition leaves too much — positioning defaults, editor_sync, and failure behavior — unexplained.

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 14 parameters, and the description only explains three of them (properties, variables, behaviors), though it does so usefully with concrete example shapes. Eleven parameters — x, y, angle, layer, width, height, opacity, layout, object, project, editor_sync — are undocumented in both the schema and the description, leaving the meaning of editor_sync in particular entirely opaque.

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 opens with a specific verb and resource: "Place an instance." That is unambiguous about what is created. It does not distinguish this tool from siblings like instance_update or object_add_instance_variable, so it stops short of a 5.

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 explicit when-to-use or when-not-to-use guidance, and no prerequisites such as whether the layout or object must already exist. Usage is only implied by the verb "Place."

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