Skip to main content
Glama
figma-mcp-v2

figma-mcp-v2

by LukasAnda

Set instance properties / swap component

figma_set_instance_properties

Updates a Figma instance's variant and component properties using short names, or swaps the instance to another component.

Instructions

Changes an instance's variant and component properties (short names like "Label" work), or swaps it to another component.

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": {
      "node_id": "<node_id>"
    },
    "name": "figma_set_instance_properties"
  }
}

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.
node_idYesNode id, e.g. "12:345" (link form "12-345" also accepted)
propertiesNo
swap_component_idNo
swap_component_keyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the safety burden is partly lifted. The description adds a genuinely useful detail — that short property names like "Label" are accepted — but says nothing about failure behavior for non-instance nodes, invalid component keys, or what happens to overrides after a swap.

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?

A single sentence with no waste, and the primary capability is front-loaded ahead of the swap alternative. It is terse to the point of under-specifying a five-parameter mutation, but nothing is redundant.

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 non-destructive mutation with a nested object parameter, 40% schema coverage, and no output schema, the description is thin: the two swap parameters and the property value types remain ambiguous. The core operation is clear enough to invoke correctly for the common case, but not for the swap path.

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 coverage is only 40%, so the description must compensate and only partly does: it explains that property keys can be short names, which is the crux of the nested "properties" object. It leaves the string-vs-boolean value distinction, and the relationship/alternative between swap_component_id and swap_component_key, entirely unexplained in both schema and description.

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 ("Changes an instance's variant and component properties") and names the second capability ("swaps it to another component"). An agent can distinguish this from create_instance or detach_instance on the basis of the verb alone, though no sibling is named explicitly.

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?

The description implies the two operation modes (set properties vs. swap component) and therefore which parameter branch to take, but it gives no when-to-use guidance, no prerequisites (e.g. node must be an instance), and no exclusions versus siblings like figma_detach_instance or figma_create_instance.

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