Skip to main content
Glama
construct2-mcp

construct2-mcp

by wjrosa

object_create

Adds an object type to a Construct 2 project, creating its required instance and optional image or frames so the object can be spawned at runtime.

Instructions

Add an object type. plugin: id or name (Sprite, Text, TiledBg, 9patch, Keyboard, Mouse, Audio, Function, Array, ...). Sprites take image (any image file) or frames (several); without one a visible placeholder is made. Like the editor's Insert Object, a world object also gets one instance placed (on layout, default the first; at x/y, default just outside the layout) because Construct 2 can only spawn objects at runtime that have an instance somewhere. Project-wide plugins (Keyboard, Audio...) get their global instance; properties sets its values.

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>",
      "name": "<name>",
      "plugin": "<plugin>"
    },
    "name": "object_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
loopNo
nameYes
imageNo
speedNo
folderNo
framesNo
layoutNo
pluginYes
projectYes
animationNoDefault
propertiesNo
editor_syncNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With zero annotations, the description carries the full burden and delivers the key non-obvious behavior: creating a world object also places one instance on a layout, while project-wide plugins get a global instance, with the Construct 2 runtime rationale given. It omits failure modes (duplicate names, invalid plugin ids) and whether the change is reversible/undoable.

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 purpose is front-loaded in the first sentence and the rest reads as layered rule statements. It is dense but nearly every clause carries information; the inline plugin list ("Sprite, Text, TiledBg, 9patch, Keyboard, Mouse, Audio, Function, Array, ...") is the one slightly wasteful element.

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 14-parameter mutation tool with no annotations and no output schema, the description should ideally cover the remaining parameters and say what is returned. It thoroughly documents the creation semantics and instance side effect but leaves an agent guessing about animation, speed, loop, folder, and editor_sync.

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 must compensate, and it does explain plugin, image vs. frames, x/y, layout, and properties with sensible defaults. However, animation, speed, loop, folder, editor_sync, and project are never mentioned, leaving roughly half of the 14 parameters with no semantic guidance anywhere.

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?

Opens with a specific verb+resource ("Add an object type") and immediately enumerates the plugin domain (Sprite, Text, Keyboard, Audio...), so an agent knows exactly what is being created. It also implicitly separates itself from instance-level siblings by explaining that placement of an instance is a side effect of this tool, not its purpose.

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?

Usage context is implied through defaults ("on `layout`, default the first; at x/y, default just outside the layout") and the note that sprites need `image` or `frames`, but there is no explicit when-to-use vs. when-not-to-use guidance and no sibling tool (e.g. object_add_instance, object_add_frames) is named as the alternative.

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