Skip to main content
Glama
yhoyoex

OpenCode Figma MCP

by yhoyoex

set_variable_value

Assign a literal value or alias to a Figma variable for a chosen mode, enabling design token updates and variable-to-variable links.

Instructions

Set the value of a variable for a mode. Value may be a literal or an alias to another variable ({aliasOf: variableId}).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesValue: {r,g,b,a?} (0-1), number, string, boolean, or {aliasOf: variableId}
modeIdNoOptional mode ID (default: collection's default mode)
variableIdYesID of the variable

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It is a mutation tool, yet nothing is said about permissions, whether existing values are overwritten, whether the variable must already exist, or what happens when modeId is omitted (that default only appears in the schema).

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?

Two compact sentences, front-loaded with the core action. No padding, though the second sentence largely duplicates the schema's value description rather than adding information.

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

Completeness3/5

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

For a 3-parameter mutation with no annotations and no output schema, the description is minimally viable: the parameters are fully documented in the schema, but the tool's side effects and mode semantics are left unexplained. Adequate but with clear gaps.

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 the baseline is 3. The description's only parameter-level addition is restating the alias shape ({aliasOf: variableId}), which the schema already documents; it adds no new meaning for variableId, modeId, or the literal value forms.

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+resource+scope: 'Set the value of a variable for a mode.' An agent can distinguish it from create_variable/delete_variable, though it does not explicitly separate itself from the semantically adjacent bind_variable, which also touches variable values.

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?

No when-to-use guidance, no alternatives named, no prerequisites. The description never tells an agent why it would pick this over bind_variable or create_variable, or when a modeId should be supplied versus omitted.

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