Skip to main content
Glama
ChenLongbetterapp

FigmaExporterMcp

set_component_property

Add a Boolean, Text, Instance Swap, or Variant property to a Figma component or component set. Specify default values and link instance swap properties.

Instructions

Add a Component Property (Boolean, Text, Instance Swap, or Variant) to a Component or ComponentSet. For INSTANCE_SWAP: defaultValue must be the component KEY (not node ID), and targetChildId should be the child Instance node whose mainComponent will be linked.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeIdYesComponent or ComponentSet node ID
defaultValueNoDefault value. For INSTANCE_SWAP: use component KEY string (not node ID)
propertyNameYesProperty name (e.g. 'Show Icon', 'Label', 'icon')
propertyTypeYesProperty type
targetChildIdNoFor INSTANCE_SWAP: the child Instance node ID to link. Sets componentPropertyReferences.mainComponent automatically
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It reveals specific behaviors for INSTANCE_SWAP (key vs node ID, linking child instance). It does not disclose mutation consequences or auth requirements but goes beyond the schema.

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 sentences with no redundant words. The first sentence covers the broad use, the second adds critical detail for a special case. Extremely efficient.

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?

Covers all 5 parameters implicitly or explicitly, addressing the special INSTANCE_SWAP case. Missing details on default behavior for other types and what happens if property already exists, but given no output schema and high schema coverage, this is reasonably complete.

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 description coverage is 100%, baseline is 3. The description adds nuance beyond the schema, such as clarifying that defaultValue for INSTANCE_SWAP is a component key and that targetChildId sets mainComponent automatically.

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?

The description clearly states the action ('Add') and the resource ('Component Property') along with the specific types (Boolean, Text, Instance Swap, Variant). It distinguishes from sibling tools like set_component_property_references by focusing on adding a property rather than referencing.

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

Usage Guidelines4/5

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

Provides explicit guidance for INSTANCE_SWAP type, specifying that defaultValue must be a key and targetChildId is required. However, it does not mention when not to use the tool or compare with alternatives for other property types.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ChenLongbetterapp/FigmaExporterMcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server