Skip to main content
Glama
Figma Vector MCP

Figma Vector MCP

by workingmodel

set_layout_grid

Apply column, row, or uniform grid guides to a Figma frame, setting counts, gutters, offsets, and cell sizes for precise layout alignment.

Instructions

Apply column, row, or uniform grid guides to a frame.

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": {
      "nodeId": "<nodeId>",
      "grids": "<grids>"
    },
    "name": "set_layout_grid"
  }
}

Input Schema

NameRequiredDescriptionDefault
gridsYes
nodeIdYesFigma node ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does not meet it. It does not say whether the supplied grids replace existing guides or append, whether minimum one grid is enforced, whether the frame must be a top-level frame versus an auto-layout frame, or what happens on invalid node 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?

A single front-loaded sentence with the action first and the three pattern variants enumerated; no filler or redundancy.

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

Completeness2/5

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

For a mutation tool with no annotations, no output schema, and a nested array parameter whose semantics vary by pattern, one sentence is far too thin. An agent cannot tell from this definition whether it is overwriting existing grid styles or how pattern selection changes which fields are required.

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 coverage is 50% with nested grid objects, and the description only adds the mapping of "column, row, or uniform" to the COLUMNS/ROWS/GRID pattern values. The nodeId purpose, the array-replacement semantics, and the interplay of offset/gutterSize/sectionSize across patterns are left entirely 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?

Names a specific verb and resource ("Apply ... grid guides") and scopes the target ("to a frame"), while enumerating the three supported patterns. It is clearly distinct from a fill/stroke/opacity setter, though it never contrasts itself with the closest sibling, set_auto_layout.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description gives no when-to-use or when-not-to-use guidance and never mentions set_auto_layout as the alternative for frame-level layout. The only implicit signal is that the target must be a frame, which an agent must infer from one word.

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