Skip to main content
Glama
figma-mcp-v2

figma-mcp-v2

by LukasAnda

Delete layers

figma_delete_nodes
Destructive

Deletes specified Figma layers by node ID so you can remove unwanted design elements; undo in Figma with Cmd/Ctrl+Z.

Instructions

Deletes the given layers. Undo in Figma with Cmd/Ctrl+Z.

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": {
      "node_ids": "<node_ids>"
    },
    "name": "figma_delete_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoFigma link (or file key) of the file to edit. Needed only when the plugin is open in more than one file.
node_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds one genuinely useful behavioral fact beyond that: deletion is recoverable via Cmd/Ctrl+Z in Figma. It omits other material behavior for a destructive batch operation, such as whether child nodes are removed with the parent and what happens when some IDs are invalid.

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, front-loaded with the operation and followed by the recovery hint. Nothing is redundant and every sentence carries information an agent can act on.

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?

This is a destructive, non-idempotent mutation with no output schema and only half its parameters described, so the description carries the main burden. It does not say whether deletion cascades to children, whether the call fails partway through a batch, or what the tool returns on success, leaving real gaps for a destructive tool.

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 coverage is 50%: 'url' is documented in the schema, but 'node_ids' has no schema description and the description only calls them 'the given layers' without explaining the ID format or whether the array is applied atomically. With half the parameters undocumented, the description should have compensated and does not.

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?

"Deletes the given layers" states a specific verb (deletes) and resource (layers), which is unambiguous and distinguishes it from the create/clone/get siblings in the list. It stops short of naming an alternative or clarifying what counts as a 'layer' versus a node, so it is clear but not fully differentiated.

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 versus siblings such as figma_clone_node or figma_detach_instance, and no prerequisites or exclusions (e.g., must the node be unlocked, must the plugin be focused on the right file). The only conditional context, the multi-file case, lives in the schema for 'url', not in the description.

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