Skip to main content
Glama

set_instance_properties

Update component properties on Figma instances—variant values, booleans, text, and instance swaps—by specifying node IDs and new values.

Instructions

Set component properties on instances (variant values, booleans, text, instance swap).

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

Input Schema

NameRequiredDescriptionDefault
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
nodeIdsYes
propertiesYesProperty names may omit the '#id' suffix

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations and no output schema, the description carries the full burden of behavioral disclosure. It says nothing about whether the call fails on non-instance targets, what happens with unknown or missing property names, whether changes are undoable, or what is returned on partial success.

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 front-loaded sentence with the action and target first and the supported value kinds parenthetically after. Nothing is padded, though the terseness leaves behavioral questions unaddressed rather than wasted.

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?

This is a mutation tool with a nested properties object, no annotations, and no output schema, so the description should say more about targeting constraints and failure modes. It covers the what but leaves the agent without enough to predict behavior on edge cases such as invalid node ids or undefined property names.

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 67%: file and properties are documented in the schema, while nodeIds has no description anywhere. The description does add real meaning to the properties object by naming the value shapes (variant values, booleans, text, instance swap), which clarifies how a string value like a swapped component id is interpreted beyond the bare string/boolean type union.

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 ("Set") and resource ("component properties on instances") and enumerates the property kinds supported: variant values, booleans, text, instance swap. This distinguishes it in substance from the generic sibling set_properties, though it never names that sibling explicitly.

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?

The only usage signal is the implicit constraint that targets must be instances. There is no guidance on when to use this versus set_properties or add_component_property, no statement about whether properties must already be defined on the component, and no prerequisites.

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