Skip to main content
Glama
open-figma-mcp

open-figma-mcp

by RHK1335

figma_set_layout_grid

figma_set_layout_grid

Apply a layout grid to a Figma frame, component, or instance by specifying pattern, count, gutter, margin, and related grid settings.

Instructions

Apply a layout grid directly to a frame, component, or instance.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "figma_set_layout_grid"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorNo
countNo
marginNo
nodeIdNoFigma node ID. Colon or URL hyphen format accepted.
offsetNo
nodeIdsNoFigma node IDs. Colon or URL hyphen format accepted.
patternNo
visibleNo
alignmentNo
screenKeyNo
gutterSizeNo
sectionSizeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It implies a mutation on existing nodes but does not disclose permissions requirements, whether an existing layout grid is overwritten, how multiple nodeIds are handled, or what the operation returns.

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

Conciseness3/5

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

The single sentence is front-loaded and free of wasted wording. However, it is too terse for a 12-parameter mutation tool, so its conciseness comes at the cost of essential operational detail.

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

Completeness1/5

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

The tool has 12 parameters, no annotations, no output schema, and very low schema description coverage, yet the description provides only a one-line summary. It is not complete enough for an agent to invoke this tool correctly without inferring behavior and parameter meaning from the schema names alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 17%, so the description needs to clarify the 12 parameters. It adds no meaningful parameter semantics for color, count, margin, offset, pattern, visibility, alignment, gutterSize, sectionSize, or the node ID parameters beyond broadly naming target node types.

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 states a specific verb and resource: apply a layout grid. It also names the valid target types (frame, component, instance), so the agent can distinguish this from unrelated Figma operations, though it does not explicitly differentiate from siblings such as create_grid_style or 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?

There is no explicit when-to-use guidance beyond the word 'directly,' which weakly hints that this applies a grid to a node rather than creating a reusable style. The description does not state when to choose this over figma_create_grid_style, figma_set_auto_layout, or other layout-related siblings.

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

Deploy Server

Other Tools