Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

create_component_from_node

Converts a Figma frame or node into a reusable component so it can be reused as instances.

Instructions

Turn a frame or other node into a component, to reuse it as instances

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>"
    },
    "name": "create_component_from_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdYesThe node's ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a mutation. It does not say whether the source node is replaced or kept, what happens to its children, whether the operation is reversible, or what the call returns (the new component node or its ID). For a state-changing design-document operation this is a substantial gap.

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?

One short sentence with the action front-loaded and no filler. It is efficient, though its brevity contributes to the missing behavioral detail rather than compensating for it.

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?

For a document-mutating operation with no annotations and no output schema, the definition leaves out side effects, return value, and error conditions. An agent knows the gist but not enough to predict the result of invoking it.

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% and there is a single required nodeId documented in the schema, so the schema does the heavy lifting. The description adds a little meaning by indicating the node is expected to be 'a frame or other node', but it never clarifies accepted node types or whether instance/component nodes are valid inputs.

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?

The description states a specific verb and resource: turning a frame or other node into a component. The purpose clause ('to reuse it as instances') also implicitly separates it from create_component_instance, which makes instances rather than components.

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 by the rationale 'to reuse it as instances' — an agent can infer this is the right tool when it wants a reusable master. There is no explicit when-not guidance, no mention of alternatives such as clone_node or create_component_instance, and no stated prerequisites about which node types qualify.

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