Skip to main content
Glama
construct2-mcp

construct2-mcp

by wjrosa

editor_close

Close a Construct 2 window while managing unsaved changes; set discard to true to force closure when changes would otherwise block it.

Instructions

Close a Construct 2 window. Unsaved changes block this unless discard=true.

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

Input Schema

NameRequiredDescriptionDefault
pidNo
discardNo
projectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does disclose the key behavioral trait: the close is refused while unsaved changes exist, and discard=true overrides that guard. It does not say what discard actually destroys, whether the close is reversible, or what happens on failure, leaving the destructive path under-explained.

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 short sentences with zero filler, and the blocking condition plus its override is front-loaded where the agent will read it before calling.

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 no annotations, no output schema, and three undocumented parameters, the definition is too thin: it explains the discard guard but not window targeting via pid/project nor the consequence of discarding.

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, yet only discard is given meaning (it bypasses the unsaved-changes block). pid and project are never explained, so the agent cannot tell how the target window is selected or whether pid takes precedence over project.

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?

"Close a Construct 2 window" gives a specific verb and resource, so an agent can immediately separate it from editor_open, editor_reload, or editor_save. It stops short of explicitly naming when a sibling is preferred, but the action 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 Guidelines3/5

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

The description implies usage (closing a window) and states one precondition: unsaved changes block the call unless discard=true. It never says what to do instead when blocked, e.g. call editor_save first, so the guidance is implied rather than actionable.

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