Skip to main content
Glama

Create grid style

figma_create_grid_style
Idempotent

Create a named grid style to save column, row, or grid layout settings, then apply it to frames for consistent designs.

Instructions

A local GRID style — a named layout grid (e.g. 12 columns, 24 gutter, 64 margin) that frames follow via figma_apply_style_to_node { type: "grid" }. Entries as in figma_set_layout_grids, which sets raw grids on frames instead. Editors: Design only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
gridsYes
sessionNoOptional sessionId or file name, to pick a Figma file when more than one is connected.
descriptionNoWhat the style is for — shown in Figma's style picker.
idempotencyKeyNoCaller-owned retry key, ≤128 chars. Re-calling with the same key never executes twice: it returns the existing result, or waits for the op still in flight. Supply your own for anything large — if the MCP client times out (rather than the bridge), only a key you chose can be used to retry safely.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly=false, idempotent=true, destructive=false), so the bar is lower. The description adds a real constraint not present in annotations: 'Editors: Design only', plus the 'local' scope of the style. It does not cover naming collisions or what the call returns, keeping it short of a 5.

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 dense sentences, each earning its place: definition, consumption path, alternative, then the editor restriction. Information is front-loaded. The jargon-heavy, clause-packed style costs it a point on readability but not on economy.

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

Completeness5/5

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

For a creation tool with no output schema, the description covers what is made, how it is consumed, what differentiates it from the raw-grid sibling, and the permission requirement. Combined with annotations that carry the idempotent/non-destructive profile, an agent has everything needed to invoke it correctly.

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 description coverage is only 60%, but the description compensates by giving a worked example for the complex 'grids' entries ('12 columns, 24 gutter, 64 margin') and cross-referencing figma_set_layout_grids for the entry format. The top-level name/grids carry no schema description, so this added context is genuinely valuable, though session/description/idempotencyKey rely on the schema alone.

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 a specific verb and resource: creating a 'local GRID style — a named layout grid'. It reinforces this with a concrete example ('12 columns, 24 gutter, 64 margin') and explicitly distinguishes itself from the sibling figma_set_layout_grids, which 'sets raw grids on frames instead'. An agent can tell it apart from the other style-creation siblings without opening a schema.

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

Usage Guidelines4/5

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

Explains the downstream consumption path ('frames follow via figma_apply_style_to_node { type: "grid" }') and names the alternative tool (figma_set_layout_grids) with the condition that separates them (reusable style vs raw grids). It lacks an explicit 'use this when / not when' framing, but the context is clearly stated.

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