Skip to main content
Glama
construct2-mcp

construct2-mcp

by wjrosa

editor_preview

Launches the current Construct 2 layout in the project's preview browser, starting the local preview server and optionally running debug mode.

Instructions

Run the current layout in the browser (Run layout / Debug layout). Construct 2 serves the preview at http://localhost:50000 and opens it in the project's preview browser.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "editor_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidNo
debugNo
projectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden and does disclose two useful behavioral facts: Construct 2 serves the preview at http://localhost:50000 and opens it in the project's preview browser. It omits whether the call blocks until load, what happens if a preview is already running, failure modes, and what is returned.

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

Conciseness5/5

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

Two sentences, front-loaded with the action, no filler. The URL is concrete and actionable; nothing could be cut without losing 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?

The description adequately conveys the action and its side effects, which is the core need, but for a three-parameter tool with no annotations and no output schema it leaves the parameter semantics and return behavior undescribed.

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 three parameters (pid, debug, project), and the description only obliquely covers 'debug' through the 'Debug layout' mention. The meaning of 'pid' and 'project' (and what happens when project is null) is left entirely undocumented.

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?

States a specific verb and resource: 'Run the current layout in the browser', with the UI-menu equivalents 'Run layout / Debug layout' as a parenthetical. An agent can tell this launches a preview rather than opening/closing the editor, though no sibling is named explicitly.

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 is implied via the UI-menu mapping ('Run layout / Debug layout'), which gives the agent a mental hook, but there is no explicit when-to-use, when-not-to-use, or prerequisite guidance (e.g., project must already be open, editor must be running). No alternative siblings are suggested.

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