Skip to main content
Glama

reorder_nodes

Change the z-order or layer order of Figma nodes within their parent: send to front/back, move forward/backward, or set a numeric index, including item order in auto-layout frames.

Instructions

Change z-order (layer order) of nodes within their parent: 'front' (top), 'back' (bottom), 'forward' / 'backward' (one step), or a numeric index (0 = bottom). In auto-layout frames this also changes item order. Returns per node its new index.

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": {
      "nodeIds": "<nodeIds>",
      "to": "<to>"
    },
    "name": "reorder_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
nodeIdsYesFigma node ids, e.g. ['12:34']

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 must carry the behavioral burden, and it does disclose a non-obvious side effect ('In auto-layout frames this also changes item order') plus the return payload ('per node its new index'). It omits important traits: whether nodes with different parents are rejected, whether the call is idempotent, and whether any permissions or file-state requirements apply.

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?

Two sentences, front-loaded with the core operation and then the mode vocabulary, followed by the auto-layout caveat and return value. Dense but every clause carries information; the parenthetical enumerations are slightly heavy but not wasteful.

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 3-parameter mutation tool with no annotations and no output schema, the description covers the operational vocabulary, a container-dependent side effect, and the return value, which is most of what an agent needs. It falls short only on edge cases like mixed-parent input and failure behavior.

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 67%, and the description compensates for the weakest part of the schema by spelling out all four string modes and the meaning of the numeric index ('0 = bottom'), which the raw anyOf enum does not explain. It also constrains nodeIds to siblings sharing a parent, adding semantics beyond the schema's bare 'Figma node ids' note; only the 'file' parameter is left to the schema.

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?

The description opens with a specific verb and resource, 'Change z-order (layer order) of nodes within their parent', and even glosses z-order so an agent unfamiliar with the term understands it. The 'within their parent' clause implicitly separates it from reparent_nodes, but no sibling is named, so differentiation still requires inference.

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 implied by the enumerated target values ('front', 'back', 'forward'/'backward', numeric index), which tell an agent what each mode means and when one is appropriate. There is no explicit guidance on when to prefer this over reparent_nodes or arrange_grid, and no stated preconditions such as all nodes sharing one parent.

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