Skip to main content
Glama

delete_nodes

Destructive

Deletes specified Figma nodes by file and node IDs in a single undo step; requires the kit bridge plugin running in that file.

Instructions

Delete nodes (one undo step in Figma). Needs the kit bridge plugin running in that file (read_bridge).

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

Input Schema

NameRequiredDescriptionDefault
idsYes
fileYesFigma file URL or key

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description is not required to establish that this mutates state. It adds genuinely new behavior context: deletions collapse into a single undo step in Figma, and the operation fails unless the bridge plugin is active in the target file. It stops short of saying whether a partial failure across multiple ids rolls back.

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 action and immediately followed by the two facts an agent most needs: reversibility and the runtime prerequisite. Nothing is padded or repeated from the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter destructive tool with no output schema, the description covers the two highest-risk unknowns — that the action is undoable in one step and that it depends on a live bridge plugin. Remaining gaps (behavior on missing ids, partial-batch failure, return value) are minor given the annotation set.

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% — 'file' is documented as a Figma URL or key, but 'ids' has no schema description beyond minItems=1. The description adds nothing about id format, whether ids must belong to the same file, or ordering/atomicity across the array, so the undocumented half stays undocumented in both places.

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 nodes') with a scoping note about Figma's undo model. It is clearly distinguishable from the read_*/write_* siblings, though it never explicitly contrasts itself with an alternative deletion or write path.

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?

Provides a real precondition ('Needs the kit bridge plugin running in that file') and points at read_bridge for that check, which is useful setup guidance. It gives no when-to-use vs. when-not guidance, no statement about what happens if the bridge is absent, and no alternative for non-bridge deletion.

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