Skip to main content
Glama
southleft

figma-console-mcp

by southleft

figma_update_variable

Updates a single Figma variable's value in a specified mode or its description, enabling targeted token edits without changing other variables.

Instructions

Update a single variable's value and/or its description. Pass modeId+value to change the value in a mode; pass description to set the 'How to use this variable' text shown in the Variables panel (and exported as DTCG $description). At least one of {modeId+value} or {description} is required. For many value updates at once, use figma_batch_update_variables (10-50x faster). Use figma_get_variables first for IDs. COLOR: hex '#FF0000', FLOAT: number, STRING: text, BOOLEAN: true/false. Requires Desktop Bridge plugin.

Input Schema

NameRequiredDescriptionDefault
valueNoThe new value (requires modeId). For COLOR: hex string like '#FF0000'. For FLOAT: number. For STRING: text. For BOOLEAN: true/false.
modeIdNoThe mode ID to update the value in (e.g., '1:0'). Required when updating a value. Get this from the variable's collection modes.
variableIdYesThe variable ID to update (e.g., 'VariableID:123:456'). Get this from figma_get_variables.
descriptionNoSet the variable's description (the 'How to use this variable' field; exported as DTCG $description). Pass an empty string to clear it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and mostly succeeds: it discloses the Desktop Bridge plugin dependency, the mode/value coupling rule (value requires modeId), and that description maps to the DTCG $description field. It omits reversibility and whether unspecified mode values are left untouched, which would complete the mutation contract.

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?

Front-loaded with the core action, then constraints, alternative, prerequisite, and type formats in labeled chunks. Dense but every clause carries operational information; mild run-on density from stacked abbreviations keeps it from a 5.

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 4-parameter mutation with no annotations and no output schema, the description supplies prerequisites, format rules, plugin requirement, and the batch alternative. It could add what the tool returns or whether omitted fields are preserved, but nothing needed to call it correctly is missing.

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 100%, so formatting is already documented, but the description adds semantics the schema does not: the conditional dependency between modeId and value, the at-least-one-of requirement, and a compact per-type value cheat sheet (COLOR/FLOAT/STRING/BOOLEAN) that lets an agent construct the call without cross-referencing the schema.

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?

The first sentence states a specific verb and resource ("Update a single variable's value and/or its description") and immediately delineates the two editable aspects. It separates itself from the batch sibling by describing itself as single-variable and pointing to figma_batch_update_variables for bulk work.

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?

It names the alternative explicitly with a quantified tradeoff ("10-50x faster") and gives the prerequisite that IDs come from figma_get_variables first. The "At least one of {modeId+value} or {description} is required" line defines the valid invocation envelope.

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