Skip to main content
Glama
figma-mcp-v2

figma-mcp-v2

by LukasAnda

Set variable values

figma_set_variable_value

Update a Figma variable's value for one or more modes by specifying the variable ID and values to keep design tokens consistent.

Instructions

Updates a variable's value for one or more modes.

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": {
      "variable_id": "<variable_id>",
      "values": "<values>"
    },
    "name": "figma_set_variable_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoFigma link (or file key) of the file to edit. Needed only when the plugin is open in more than one file.
valuesYes
variable_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds almost nothing beyond that: it does not say whether the update overwrites all modes or only the supplied ones, what happens on a type mismatch, or whether a partial failure rolls back other modes.

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?

A single front-loaded sentence with zero padding, which is structurally clean. The brevity is achieved by omission rather than by economy, so it reads as under-specified rather than tight.

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

Completeness2/5

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

For a non-idempotent mutation with a nested, mode-keyed value map, three parameters and no output schema, one sentence is not enough. An agent cannot determine the expected shape of 'values' or the failure semantics of a multi-mode update from this definition alone.

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

Parameters2/5

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

Schema description coverage is only 33% — just the optional 'url' field — leaving 'variable_id' and the nested 'values' object undocumented. The phrase 'for one or more modes' faintly implies that 'values' is keyed by mode, but the description never states that keys are mode IDs or what value shapes are accepted, so it fails to compensate for the coverage gap.

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?

States a specific verb and resource ('Updates a variable's value') plus the scope 'for one or more modes', which is enough to distinguish this from creation/collection tools. It does not, however, contrast itself with the closely related figma_bind_variable, which is the most likely confusion point for an agent.

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 when-to-use guidance, no prerequisites (e.g. the variable must already exist; the value must match the variable's resolved type), and no mention of alternatives such as creating a variable versus binding one to a node. The agent must infer the entire selection context.

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