Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

create_component_instance

Create a Figma component instance at specified coordinates using a local component ID or published component key, optionally placing it inside a parent node.

Instructions

Create an instance of a component: a local one by componentId, a published one by componentKey

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": {
      "x": "<x>",
      "y": "<y>"
    },
    "name": "create_component_instance"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesX position
yYesY position
parentIdNoOptional parent node ID to place the instance into
componentIdNoA local component's ID (id from get_local_components)
componentKeyNoA published component's key (key from get_local_components, or a library's)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses only the local-vs-published resolution rule; it says nothing about what is returned (the new instance's ID), what happens if both or neither identifier is supplied, or whether creation is reversible. For a mutation tool with zero annotation coverage, this leaves significant gaps.

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 sentence that front-loads the action and then branches into the two modes; there is no wasted wording. The colon structure makes the branching easy to scan.

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?

The parameters are fully documented and the central ambiguity between local and published components is resolved, which is adequate for a simple create tool. However, with no annotations and no output schema, the definition omits return-value and error behavior that an agent would need in order to call and interpret it confidently.

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 100%, so the schema already documents all five parameters with per-field descriptions. The description reinforces the componentId/componentKey distinction but adds no syntax, format, or constraint detail beyond what the schema states, so the baseline of 3 applies.

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 ('Create an instance of a component') and immediately names the two creation modes, local by componentId and published by componentKey. It does not, however, differentiate itself from the sibling create_component_from_node, which an agent could plausibly confuse with this tool.

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 description implicitly tells the agent which identifier to supply depending on whether the component is local or published, which is genuine usage guidance. It offers no when-to-use or when-not-to-use guidance relative to alternatives such as create_component_from_node, and doesn't state whether the two ID parameters are mutually exclusive.

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