Skip to main content
Glama
construct2-mcp

construct2-mcp

by wjrosa

layer_delete

Delete a layer and its instances from a Construct 2 project layout by specifying project, layout, and layer. Remove unwanted layers and their objects in one action.

Instructions

Delete a layer and its instances.

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>",
      "layer": "<layer>"
    },
    "name": "layer_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
layerYes
layoutYes
projectYes
editor_syncNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden, and it does deliver the single most important fact: instances belonging to the layer are destroyed too. It says nothing about irreversibility, whether related events/sheets are affected, required permissions, or how editor_sync alters behavior, so significant destructive-behavior gaps remain.

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?

A single short sentence with the destructive consequence front-loaded and no filler. Every word carries weight, and nothing is buried.

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 an irreversible mutation with four undocumented parameters, no annotations, and no output schema, the definition is far too thin. An agent cannot tell what editor_sync does, whether layout/project scope matters, or what happens to dependent events, so it cannot invoke this safely without opening the schema and guessing.

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 four parameters, so the description must compensate and does not: project, layout, and layer are never explained, and the optional editor_sync parameter is not mentioned at all. Only the implicit mapping of "layer" to the layer parameter is conveyed.

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?

"Delete a layer and its instances" states a specific verb and resource and adds the cascade scope, so the action is unambiguous. It does not differentiate itself from sibling operations such as layer_update or instance_delete, which removes individual instances rather than the whole layer.

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?

There is no guidance on when to use this instead of instance_delete (remove one instance) or layer_update (rename/modify a layer). No prerequisites, exclusions, or confirmation requirements are stated, leaving the agent to infer the choice.

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