Skip to main content
Glama
construct2-mcp

construct2-mcp

by wjrosa

editor_ui_tree

Retrieve the Construct 2 editor's UI Automation tree to locate controls by type, name, or automation ID for subsequent UI actions.

Instructions

The editor's UI Automation tree (control type, name, automation id), from the main window or a named control/dialog. Use it to find controls for editor_ui_act.

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_ui_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidNo
rootNo
depthNo
projectNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load, and it does signal a read-style inspection that names the returned per-node fields. It says nothing about traversal cost, what happens with an invalid root or unreachable editor, or whether deep trees are expensive. Adequate but thin for an unannotated tool.

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, the resource and its node fields stated first, the downstream use case second. No filler and no redundancy.

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?

An output schema exists, so return formatting need not be described, and the purpose plus the editor_ui_act handoff give enough to call it correctly. Still, an unannotated, four-parameter tree walk leaves the agent guessing about depth semantics and failure behavior.

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 coverage is 0%, so all four parameters (pid, root, depth, project) arrive undocumented. The phrase "from the main window or a named control/dialog" usefully explains what root means and what happens when it is omitted, but depth — which directly bounds the size of the returned tree — and pid/project get no explanation anywhere.

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 resource (the UI Automation tree) and enumerates what each node carries (control type, name, automation id), plus the scope it is rooted at (main window or a named control/dialog). It explicitly points the agent at editor_ui_act as the consumer, which separates it from the sibling. The only shortfall is the implicit verb — it never literally says whether it returns or queries the tree.

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

Usage Guidelines4/5

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

"Use it to find controls for editor_ui_act" gives a concrete when-to-use condition tied to a specific sibling, which is exactly the discovery step an agent needs. There are no explicit exclusions (e.g. when a cheaper known-id path exists), so it stops short of full routing guidance.

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