Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

set_instance_properties

Set an instance's variant, boolean, text, and instance-swap properties by name, using #id suffixes for non-variant properties retrieved via get_instance_properties.

Instructions

Set an instance's component properties: variant values by name; boolean, text and instance-swap properties by their name with the #id suffix from get_instance_properties

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": {
      "nodeId": "<nodeId>",
      "properties": "<properties>"
    },
    "name": "set_instance_properties"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdYesThe instance's ID
propertiesYese.g. {"Style": "Glass", "Show Icon#12:3": false}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose a real behavioral constraint by enumerating which property types are settable (variant, boolean, text, instance-swap), implicitly excluding others. However, it says nothing about what happens to properties not listed, whether the call fails on invalid keys, error modes, or permissions.

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 dense sentence with zero filler, front-loaded with the action and followed by the property-type breakdown. Slightly compressed punctuation makes it a touch harder to parse, but nothing is redundant.

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

Completeness4/5

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

For a two-parameter mutation tool with fully documented schema and no output schema, the description covers the essential semantics: which property types are accepted and how keys must be formed. Only failure behavior and the read-before-write dependency are left implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3, and the description adds genuine meaning beyond it: it explains the key-naming rules in the properties map (variants by plain name, other types requiring the #id suffix obtained from get_instance_properties). That is more than the schema's single example conveys.

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?

Names a specific verb (Set) and resource (an instance's component properties), and enumerates the supported property kinds: variant values by name, boolean/text/instance-swap by name plus #id suffix. An agent can tell this targets instance-level component properties rather than generic node properties, though it never explicitly distinguishes itself from siblings like set_node_properties or set_instance_overrides.

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 reference to 'the #id suffix from get_instance_properties' implies a workflow: read names first, then set. That is useful implied sequencing, but there is no explicit statement of when to prefer this over set_node_properties or set_instance_overrides, and no prerequisite or exclusion guidance.

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