Skip to main content
Glama
Figma Canvas MCP

Figma Canvas MCP

by AmroJSawan

figma_update_variable

Update a single Figma variable's value for a specific mode, supporting color, number, string, and boolean values. Use for individual changes; use batch updates when changing multiple variables.

Instructions

Update a single variable's value. For multiple updates, use figma_batch_update_variables instead (10-50x faster). Use figma_get_variables first for IDs. COLOR: hex '#FF0000', FLOAT: number, STRING: text, BOOLEAN: true/false. Requires Canvas Bridge plugin.

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": {
      "variableId": "<variableId>",
      "modeId": "<modeId>",
      "value": "<value>"
    },
    "name": "figma_update_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesThe new value. For COLOR: hex string like '#FF0000'. For FLOAT: number. For STRING: text. For BOOLEAN: true/false.
modeIdYesThe mode ID to update the value in (e.g., '1:0'). Get this from the variable's collection modes.
variableIdYesThe variable ID to update (e.g., 'VariableID:123:456'). Get this from figma_get_variables.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.17.3

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It usefully discloses the non-obvious "Requires Canvas Bridge plugin" prerequisite and the per-type value formats, but says nothing about mutation side effects, reversibility, error behavior on a bad modeId, or what the call returns.

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 alternatives, prerequisites, and formats in a compact order that mirrors the call sequence. The type-format sentence duplicates the schema's value description and could be trimmed, but nothing is padded or ambiguous.

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 three-parameter mutation with an environment prerequisite, it covers action, scope, prerequisite discovery step, batching alternative, and per-type value encoding. The remaining gap, return value and failure behavior, is modest since no output schema exists but the operation is a simple set-value write.

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%, so all three parameters are already documented, and the description's COLOR/FLOAT/STRING/BOOLEAN mapping largely restates the value parameter's schema description. Baseline 3 is appropriate; it adds no new semantic detail such as modeId defaults or ID formats beyond what the schema shows.

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?

"Update a single variable's value" pairs a specific verb with a specific resource and explicitly scopes it to one variable, which is exactly what separates it from figma_batch_update_variables. An agent can distinguish it from siblings like figma_rename_variable or figma_resolve_variable without opening any 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?

It names the alternative (figma_batch_update_variables) and the condition that selects it, quantifying the benefit as 10-50x faster for multiple updates. It also states a prerequisite workflow: call figma_get_variables first to obtain IDs, which prevents a common invalid-call pattern.

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