Skip to main content
Glama
Figma Canvas MCP

Figma Canvas MCP

by AmroJSawan

figma_add_component_property

Adds a BOOLEAN, TEXT, INSTANCE_SWAP, or VARIANT property to a Figma component or component set, enabling dynamic content and behavior in instances.

Instructions

Add a new component property to a component or component set. Properties enable dynamic content and behavior in component instances. Supported types: BOOLEAN (toggle), TEXT (string), INSTANCE_SWAP (component swap), VARIANT (variant selection).

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>",
      "propertyName": "<propertyName>",
      "type": "<type>",
      "defaultValue": "<defaultValue>"
    },
    "name": "figma_add_component_property"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesProperty type: BOOLEAN for toggles, TEXT for strings, INSTANCE_SWAP for component swaps, VARIANT for variant selection
nodeIdYesThe component or component set node ID
defaultValueYesDefault value for the property. BOOLEAN: true/false, TEXT: string, INSTANCE_SWAP: component key, VARIANT: variant value
propertyNameYesName for the new property (e.g., 'Show Icon', 'Button Label')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.17.3

TDQS

B3.4/5.0
Behavior3/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 discloses the type domain and the user-facing effect of properties on instances, which is real behavioral context, but says nothing about permissions, whether existing instances are affected, error cases for duplicate property names, or what is returned after the mutation.

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?

Three compact sentences, front-loaded with the action and target before the type enumeration. Slight redundancy with the schema's enum description, but nothing is wasted.

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?

All four parameters are required and there is no output schema or annotation coverage, so the description must stand in for behavior. It covers the type taxonomy adequately but leaves out the component-only precondition, duplicate-name behavior, and post-call effects, which matter for a mutation tool.

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 description coverage is 100%, so each parameter is already documented in the schema itself, including per-type values for defaultValue. The description's type list largely restates the schema's enum description, adding no new meaning for nodeId, propertyName, or defaultValue syntax.

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 ('Add a new component property to a component or component set') and scopes the supported types. An agent can distinguish it from the delete/edit property siblings by the verb alone, though the description never names them 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?

Usage is only implied: 'Properties enable dynamic content and behavior in component instances' hints at why one would add a property, but there is no explicit when-to-use guidance, no mention of prerequisites (e.g., the node must be a component/component set), and no routing versus figma_edit_component_property or figma_delete_component_property.

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

Deploy Server

Other Tools