Skip to main content
Glama
figma-forge-mcp

figma-forge-mcp

by TBlopT

create_variables

Create or update Figma variable collections with per-mode design token values, names, types, scopes, and descriptions.

Instructions

Create or update a Figma variable collection with modes (design tokens). Values are given per mode.

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": {
      "collection": "<collection>",
      "vars": "<vars>"
    },
    "name": "create_variables"
  }
}

Input Schema

NameRequiredDescriptionDefault
varsYes[{ name: 'color/bg', type: COLOR|FLOAT|STRING, values: [perMode…], scopes?, description? }]
modesNoMode names, e.g. ['Dark','Light']
collectionYesCollection name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses only the upsert nature ('create or update'). It says nothing about what happens to an existing collection's variables that are not listed, whether updates are additive or destructive, whether modes can be changed on an existing collection, or what permissions are required. For a mutation tool with zero annotation coverage this is a meaningful gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, zero filler, with the verb and resource front-loaded and the mode semantics immediately after. Nothing could be removed without losing meaning.

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 write tool with no annotations and no output schema, the description should say what is returned or changed and how it behaves against an existing collection. Instead it leaves the destructive/upsert consequences and the relationship between modes and existing variables entirely implicit, which is not enough for an agent to call it safely.

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 schema already documents collection, modes, and the per-variable shape including inline type enums and per-mode values. The description confirms the key semantic that variable values are positional per mode, which is a genuine clarification, but it adds no syntax or constraint detail beyond the schema. Baseline 3 is appropriate.

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?

The description gives a specific verb pair plus resource: 'Create or update a Figma variable collection with modes (design tokens)'. An agent knows this is the token/collection writer, distinct from node-creation siblings like create_frame or create_rectangle. It stops short of naming a sibling (e.g. create_styles) to disambiguate styling-vs-variables, so it lands at 4 rather than 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by 'design tokens' and 'values are given per mode', which tells the agent this is the right tool when mode-scoped token sets are needed. There is no explicit when-not guidance, no mention of how it relates to create_styles, and no statement about prerequisites such as needing an existing collection or file permissions.

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