Skip to main content
Glama
southleft

figma-console-mcp

by southleft

figma_create_variable

Create a single Figma variable in a specified collection, supporting color, float, string, boolean, timing, and easing types for design token workflows.

Instructions

Create a single Figma variable. For multiple variables, use figma_batch_create_variables instead (10-50x faster). Use figma_get_variables first to get collection IDs. Supports COLOR, FLOAT, STRING, BOOLEAN, and motion TIMING/EASING. Requires Desktop Bridge plugin.

Input Schema

NameRequiredDescriptionDefault
nameYesName for the new variable (e.g., 'primary-blue')
descriptionNoOptional description for the variable
collectionIdYesThe collection ID to create the variable in (e.g., 'VariableCollectionId:123:456'). Get this from figma_get_variables.
resolvedTypeYesThe variable type: COLOR, FLOAT, STRING, BOOLEAN, or the motion types TIMING and EASING. TIMING values are seconds (a number like 0.3, or '300ms' / '0.3s'). EASING values are 'cubic-bezier(x1, y1, x2, y2)', a Figma easing name (EASE_IN, EASE_OUT, EASE_IN_AND_OUT, LINEAR, EASE_IN_BACK, EASE_OUT_BACK, EASE_IN_AND_OUT_BACK, GENTLE, QUICK, BOUNCY, SLOW, HOLD) or 'spring(bounce)' with bounce 0–1.
valuesByModeNoOptional initial values by mode ID. Example: { '1:0': '#FF0000', '1:1': '#0000FF' }

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose a real operational prerequisite (Desktop Bridge plugin required) and the cross-tool dependency on figma_get_variables, which is valuable. However, it says nothing about mutation semantics such as duplicate-name behavior, whether the variable is created across all modes, or what happens on failure — gaps that matter for an unannotated write tool.

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?

Four short sentences, each carrying distinct actionable information: what it does, when to use the alternative, the prerequisite lookup, and the type surface. No filler and the single-vs-batch distinction is front-loaded.

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?

There is no output schema, and the description never says what is returned (presumably the new variable's ID), which an agent may need for follow-up calls. Otherwise the prerequisites, id source, and supported types make the definition sufficient for a 5-parameter creation tool.

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 description coverage is 100% and the schema already documents every parameter, including detailed TIMING/EASING formatting and a valuesByMode example, so the baseline is 3. The description's type list ('COLOR, FLOAT, STRING, BOOLEAN, and motion TIMING/EASING') merely restates the enum and adds no syntax or constraint beyond what the schema provides.

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 ('Create a single Figma variable') and immediately scopes it to one variable, distinguishing it from figma_batch_create_variables and figma_create_variable_collection. An agent knows exactly what this does without opening the schema.

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

Usage Guidelines5/5

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

Explicitly names the alternative ('use figma_batch_create_variables instead (10-50x faster)'), gives the prerequisite call ('Use figma_get_variables first to get collection IDs'), and states the environmental requirement (Desktop Bridge plugin). All three conditions that gate correct invocation are present.

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