Skip to main content
Glama
construct2-mcp

construct2-mcp

by wjrosa

layout_set

Change a layout's size, event sheet, margins, or unbounded scrolling settings to adjust how a Construct 2 project scene behaves.

Instructions

Change a layout's size, event sheet, margins or unbounded scrolling.

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": "layout_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthNo
heightNo
layoutYes
marginsNo
projectYes
editor_syncNo
event_sheetNo
unbounded_scrollingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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, but it only says 'Change'. It does not state whether omitted/null parameters leave values untouched (important given all optional fields default to null), whether changes require the layout to be open, what editor_sync does, or whether edits are reversible or saved.

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?

A single front-loaded sentence with no filler; every listed item corresponds to a real parameter. It is arguably too terse for an 8-parameter mutation, but nothing is wasted.

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 mutation tool with 8 parameters, zero schema descriptions, no annotations, and no output schema, this one-line description is not enough to invoke it confidently. Null semantics, editor_sync behavior, and identification of project/layout are all missing.

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% across 8 parameters, so the description must compensate. It partially does: width/height map to 'size', and event_sheet, margins, and unbounded_scrolling are named explicitly. However project, layout, and editor_sync are left entirely unexplained, and there is no hint about expected formats (e.g. margin array order, editor_sync values).

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?

Names a specific verb ('Change') and resource ('layout') plus the four mutable facets (size, event sheet, margins, unbounded scrolling), which clearly separates it from layout_create and layout_get. It stops short of saying anything about the target project/layout identification, but the operation itself is unambiguous.

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?

No when-to-use or when-not-to-use guidance. With siblings like layout_create and layout_get present, the agent must infer on its own that this is the mutation path for an existing layout. No prerequisites such as project being open in the editor are stated.

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