Skip to main content
Glama

arrange_grid

Lay out Figma nodes in a row-by-row grid, sizing columns to the widest node and rows to the tallest for variant or component sheets.

Instructions

Lay out nodes in a grid in the given order (row by row). Column width = widest node in that column, row height = tallest node in that row. Origin defaults to the top-left of the nodes' current union bounds (absolute coordinates). Handy for variant / component sheets.

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>",
      "columns": "<columns>"
    },
    "name": "arrange_grid"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoOrigin x (absolute)
yNoOrigin y (absolute)
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
gapXNoHorizontal gap, default 0
gapYNoVertical gap, default 0
columnsYes
nodeIdsYes

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 does real work: it explains the sizing algorithm (column width = widest node, row height = tallest), the default origin (top-left of union bounds in absolute coordinates), and the ordering semantics. It still omits mutation-relevant behavior such as whether nodes are moved in place, whether the operation is undoable, and what happens to nodes not in nodeIds, which matters for a document-modifying tool with zero annotation coverage.

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?

Three tight sentences, front-loaded with the action and layout rule before defaults and the use case. Nothing is redundant, though 'union bounds' is jargon an agent must already understand.

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 7-parameter mutation tool with no annotations and no output schema, the description covers the algorithmic core, the origin default, and the ordering contract that the schema cannot express. The remaining gaps (gap semantics, file targeting, return value) are minor because the schema documents those parameters directly.

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 71%, and the description adds meaning the schema lacks: nodeIds order determines placement ('in the given order'), columns drives a row-by-row wrap, and x/y default to the union-bounds top-left rather than 0. gapX/gapY and file are left entirely to the schema, which already documents their defaults.

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 concrete verb and resource ('Lay out nodes in a grid') and specifies the ordering rule ('row by row'), so the operation is unambiguous. It does not name a sibling such as align_to_grid or align_nodes to contrast against, which keeps it short of a 5.

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?

'Handy for variant / component sheets' gives an implied context for use but never states when to prefer this over align_to_grid or align_nodes, nor any exclusions or prerequisites. Usage is inferable rather than directed.

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