Skip to main content
Glama
open-figma-mcp

open-figma-mcp

by RHK1335

figma_set_variable_value

figma_set_variable_value

Sets a local Figma variable's value for a specific mode, letting AI agents update design tokens programmatically by variable, collection, or mode identifiers.

Instructions

Set a local variable value for a mode.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "figma_set_variable_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueNo
modeIdNo
modeNameNo
variableIdNo
collectionIdNo
variableNameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure and does almost none of it. It does not say whether the existing value is overwritten or recoverable, whether the mode must pre-exist, whether an unknown mode errors, or what happens to values in other modes. Only the bare mutation intent is conveyed.

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 short sentence with the action front-loaded and no filler. Its brevity is not the problem, but it is under-specified rather than economic.

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 mutation tool with no annotations, no output schema, six all-optional parameters and a free-form 'value' field, the description is far too thin. It never clarifies which identifiers are actually needed to target a variable and mode, so an agent could construct a call that fails validation or writes to the wrong target.

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?

Six parameters at 0% schema description coverage, and the description only loosely gestures at 'value' and 'mode'. It gives no help on variableId vs variableName vs collectionId, on whether modeId and modeName are interchangeable alternatives, or on the accepted shape of the untyped 'value' object. The schema alone leaves the identification strategy ambiguous.

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 ('Set') and resource ('a local variable value') scoped to a mode, which is enough for an agent to know this writes a variable's per-mode value. It does not distinguish itself from siblings such as figma_create_variable or figma_bind_variable_to_node, and the qualifier 'local' is left unexplained.

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 and mode must already exist), and no reference to alternatives like binding a variable to a node. The agent must infer everything about selection context.

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