Skip to main content
Glama
figma-mcp
by ivn4k

Delete nodes

delete_nodes
Destructive

Delete one or more Figma nodes by ID to remove layers or elements from an open file; the change is one undo step, reversible with Ctrl+Z.

Instructions

Delete nodes by id (one undo step; the user can press Ctrl+Z in Figma).

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": {
      "ids": "<ids>"
    },
    "name": "delete_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, so the safety profile is partly covered. The description adds genuinely new behavioral context: the deletion is a single undo step and the user can reverse it with Ctrl+Z in Figma, which tells the agent the operation is recoverable. It does not explain cascading effects on child nodes or what happens with invalid ids.

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 short sentence with the operation and key front-loaded, and the parenthetical undo note appended without waste. Nothing is redundant or padded.

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?

This is a simple one-parameter mutation with no output schema, and the description covers the core action plus reversibility. It leaves gaps relevant to a destructive tool, such as effects on children/parents and error behavior for unknown ids, so it is adequate but not complete.

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 0% for the single parameter, so the description has to carry the meaning. It does state that nodes are identified "by id", clarifying that ids are node identifiers rather than names, but it adds no detail on id format, how to obtain ids, or behavior when some ids are invalid. Minimum-viable rather than compensating for the coverage gap.

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 nodes by id" gives a specific verb plus resource and states the addressing key, which distinguishes it from siblings like get_nodes, update_nodes, and clone_nodes. It stops short of naming an alternative explicitly, 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The purpose implies the usage case, but there is no explicit when-to-use or when-not-to-use guidance, no mention of prerequisites such as the nodes needing to exist or belong to the current file, and no routing to alternatives like restructure_nodes or update_nodes for non-deletion changes.

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