Skip to main content
Glama

layer_delete

Deletes a specified layer from the canvas using its layer ID, so AI agents can remove unwanted design elements during editing workflows.

Instructions

Deletes a layer from the canvas.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layerIdYesLayer ID to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.7

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. While 'Deletes' implies a destructive mutation, it does not state whether the action is reversible, whether it requires specific permissions, or what happens to related elements. This is a significant gap for a destructive operation.

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?

The description is a single, front-loaded sentence with zero waste. It says exactly what the tool does and nothing more, making it appropriately concise.

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 tool with one fully documented parameter and no output schema, the description is minimally sufficient to know what it does. However, because there are no annotations, the description should do more to convey the destructive and potentially irreversible nature of the operation, which it fails to address.

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?

The schema has 100% description coverage for the single parameter 'layerId' ('Layer ID to delete'), so the schema already fully documents the parameter. The description adds no additional meaning beyond what the schema provides, making the baseline of 3 appropriate.

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?

The description states a specific verb ('Deletes') and resource ('a layer from the canvas'), making it easy to distinguish from sibling tools like layer_duplicate or layer_reorder. It does not explicitly name an alternative or scope boundary, so it stops short of a 5.

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 tool versus alternatives such as canvas_clear or pages_delete, nor any prerequisites or conditions mentioned. The description only states what it does, leaving the agent to infer usage context.

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