Skip to main content
Glama

figma_set_variant

Idempotent

Set variant or boolean component properties on a Figma instance. Use single property mode or batch mode to set multiple variants at once, ensuring valid axis combinations.

Instructions

Set VARIANT or BOOLEAN component properties on an instance. Supports single property OR batch mode. IMPORTANT: For VARIANT properties, Figma requires all variant axes to form a valid combination — use batch mode (properties object) to set multiple variants at once. For BOOLEAN properties, use true/false (not strings). Use figma_get_component_variants to discover available property names and values first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeIdYes
propertyNameNoSingle property name, e.g. "Size" or "Icon leading". Use "properties" for batch.
valueNoString for VARIANT, boolean for BOOLEAN.
propertiesNoBatch mode: { "Size": "sm", "Hierarchy": "Link", "Icon leading": false }. Overrides propertyName/value.
Behavior5/5

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

Beyond annotations (idempotentHint=true, etc.), the description adds critical behavioral context: the requirement for variant axis combinations and the correct data type for BOOLEAN properties. No contradiction with annotations.

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 sentences, each carrying essential information: purpose, important caveat, and auxiliary guidance. Front-loaded with key action and mode support. No extraneous content.

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

Completeness5/5

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

Given the complexity of batch mode and variant constraints, the description covers all critical aspects. No output schema is needed for a mutation tool. The description compensates well for the absence of enums and nested object explanation in the schema.

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?

The schema already describes propertyName, value, and properties with some detail (75% coverage). The description adds value by explaining that batch mode overrides single mode and clarifying value types, but the schema's descriptions are already fairly informative.

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 it sets VARIANT or BOOLEAN component properties on an instance, supports both single property and batch modes, and distinguishes from sibling tool figma_get_component_variants which discovers available properties.

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

Usage Guidelines5/5

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

Explicitly instructs to use figma_get_component_variants first to discover property names and values, and warns that for VARIANT properties all axes must form a valid combination, recommending batch mode. Also specifies that BOOLEAN properties require true/false, not strings.

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/miapre/mimic-ai'

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