Skip to main content
Glama

layer_delete

Delete a layer from a live Moho Pro project by numeric ID, exact name, or UUID, with undo support.

Instructions

Delete a layer by ID, name, or UUID (undoable).

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

Input Schema

NameRequiredDescriptionDefault
layerIdNoNumeric depth-first layer ID (from layer_list)
layerNameNoExact layer name
layerUuidNoLayer UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden. It discloses one genuinely useful trait — that the operation is undoable — but says nothing about what happens to child layers or group contents, whether all three identifier parameters are optional simultaneously, or what is returned. For a destructive mutation with three optional params, that is a substantial gap.

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 front-loaded sentence: verb, resource, identifier options, and the most decision-relevant caveat (undoable). Nothing is padded and nothing needs to be re-read.

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?

For a simple delete it covers identity and reversibility, which may be enough for an agent that already knows the layer model. It is thin given zero annotations, zero required parameters, and no output schema — an agent cannot tell from the definition whether omitting all identifiers is an error or what side effects occur on nested layers.

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 100%, so each parameter is already documented including the layerId/layer_list linkage. The description merely restates the three lookup modes without adding precedence, format, or conflict-resolution semantics, so the baseline 3 applies.

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 ("Delete a layer") plus the accepted identifier forms, which clearly separates it from siblings like layer_create, layer_duplicate, or bone_delete. It falls short of 5 only because it does not explicitly name a contrasting sibling or scope boundary.

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 three identifier modes imply when the tool is applicable, and the "from layer_list" hint in the schema ties it to the discovery tool. However, there is no guidance on which identifier to prefer, what happens if several are supplied or none are, or when to use this versus sibling mutation tools such as layer_reparent.

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