Skip to main content
Glama
Figma Canvas MCP

Figma Canvas MCP

by AmroJSawan

figma_add_mode

Adds a new mode to an existing Figma variable collection, enabling variables to hold different values per context such as Light/Dark themes or device sizes.

Instructions

Add a new mode to an existing Figma variable collection. Modes allow variables to have different values for different contexts (e.g., Light/Dark themes, device sizes). Requires the Canvas Bridge plugin to be running.

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": {
      "collectionId": "<collectionId>",
      "modeName": "<modeName>"
    },
    "name": "figma_add_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNameYesThe name for the new mode (e.g., 'Dark', 'Mobile', 'High Contrast').
collectionIdYesThe collection ID to add the mode to (e.g., 'VariableCollectionId:123:456'). Get this from figma_get_variables.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.17.3

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and it does disclose a real operational prerequisite: the Canvas Bridge plugin must be running. That is genuinely useful context annotations wouldn't supply, but it stays silent on what the new mode's values are (empty or copied from an existing mode), whether the operation is reversible, and what happens on a duplicate name.

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?

Three short sentences with the action first, the concept explanation second, and the hard prerequisite last. No restated parameters or filler.

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 state-changing tool with no annotations and no output schema, the description covers the prerequisite but leaves the agent guessing about the effect of the new mode and the response shape. Schema coverage is complete, so the remaining gap is behavioral, not parametric.

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 both parameters are already documented, including the collectionId format and the pointer to figma_get_variables. The description adds nothing beyond the schema for either parameter, so the baseline 3 applies rather than a higher score.

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?

Uses a specific verb ('Add') and resource ('a new mode to an existing Figma variable collection'), and the parenthetical examples of Light/Dark themes make the concept concrete. It reads as distinct from figma_rename_mode purely on the verb+object, so an agent can pick correctly without opening a schema.

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 only implied: the description says the collection must already exist and frames modes as per-context variable values, which hints at when you'd want one. It gives no explicit when-to-use/when-not guidance, no mention of figma_rename_mode or figma_create_variable_collection as adjacent steps beyond the schema's 'Get this from figma_get_variables' pointer.

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