Skip to main content
Glama
figma-mcp
by ivn4k

Group / component / boolean ops

restructure_nodes

Restructures Figma nodes by grouping, ungrouping, wrapping in frames, converting to components or variants, placing instances, running boolean operations, flattening, and detaching.

Instructions

Structural operations on nodes: group, ungroup, wrap_in_frame (frame around nodes, keeps positions; pass props such as layoutMode/padding), to_component (each node becomes a component), combine_as_variants (components → component set), create_instance (instance of a component placed next to it), flatten, union, subtract, intersect, exclude, detach_instance. Optional name/props are applied to the resulting node.

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

Input Schema

NameRequiredDescriptionDefault
idsYes
nameNo
propsNo
actionYes
parentIdNoParent for the result. Default: parent of the first node

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it does disclose that to_component makes each node a component, that create_instance places the new instance beside the source, and that name/props land on the result — useful mutation context. It omits reversibility (are source nodes consumed by to_component/combine_as_variants?), failure modes, and any permission or page-context requirements, which matter for a 12-action mutating tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the resource and operation class, then a dense action list where each clause earns its place by disambiguating an action name. The single run-on paragraph is harder to scan than a bulleted action list would be, but there is little redundant wording.

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?

The action enum is covered, but for a 12-action tool with no output schema and no annotations the description never says what is returned (new node or component IDs?), which is critical for chaining follow-up calls like update_nodes on the result. Per-action preconditions and the meaning of the result for each branch are likewise absent.

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 only 20% (only parentId is documented), so the description should compensate; it does explain that props carries layout/frame properties like layoutMode/padding and that name/props apply to the resulting node. It stays silent on the required ids array semantics (multi-node vs single-node per action) and on how parentId interacts with each action's default placement, leaving real gaps at this coverage level.

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 the resource (nodes) and the exact class of operations, then enumerates every action in the enum, with a short gloss where the action name alone is ambiguous (wrap_in_frame 'frame around nodes, keeps positions', combine_as_variants 'components → component set'). An agent can distinguish this from create_nodes/update_nodes/clone_nodes because it is explicitly about restructuring existing nodes rather than making or editing them.

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 per-action glosses imply when each action applies (e.g. create_instance 'placed next to it', to_component 'each node becomes a component'), which is real guidance. However it never states prerequisites or exclusions — nothing says combine_as_variants needs components as input, union/subtract need vector shapes, or when to prefer clone_nodes / create_nodes over these operations — so the agent must infer selection from the action names alone.

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