Skip to main content
Glama

Delete shape content item

delete_shape_content
Destructive

Remove a group, path, fill, stroke, or modifier from a shape layer's Contents by path, then return the remaining items in the parent.

Instructions

Delete one item (group, path, fill, stroke, modifier...) from a shape layer's Contents by path, e.g. 'Rect 1' (a group at the root) or 'Logo/Fill 1' (an item inside group Logo). Returns what remains in the parent.

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": {
      "layer": "<layer>",
      "path": "<path>"
    },
    "name": "delete_shape_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
pathYesItem path: parent group names then the item name/index, '/'-separated.
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag this as destructive and not read-only, so the bar is lower. The description adds the otherwise-unknown return behavior ('Returns what remains in the parent') and confirms deletion is scoped to a single item inside a layer rather than the layer itself, though it says nothing about undo or irreversibility.

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?

One tightly packed sentence leads with the action and target, the path format is embedded as parenthetical examples, and the return behavior is a short trailing clause. No filler or repetition of the title.

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 3-parameter destructive tool with full schema coverage and no output schema, the description covers purpose, targeting, and return value. It is still silent on selection defaults for `layer` when names collide, error behavior for a bad path, and whether the deletion can be reverted — gaps an agent may hit at call time.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, giving a baseline of 3, and the description goes slightly beyond by showing concrete path string forms that illustrate what the schema's '/'-separated parent-plus-item rule looks like in practice. It adds no meaning for the `comp` or `layer` parameters, which are left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Delete') plus the exact resource ('one item ... from a shape layer's Contents') and even enumerates the item kinds (group, path, fill, stroke, modifier). This scopes it clearly away from whole-layer/whole-item deletion siblings without ambiguity.

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?

Usage is conveyed only by example paths ('Rect 1' for a root group, 'Logo/Fill 1' for a nested item), which implies how to target items but never states when to pick this over delete_items or delete_layers, nor any preconditions. The guidance is usable but inferred rather than explicit.

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

Deploy Server

Other Tools