Skip to main content
Glama
mhue26

Talk to Figma MCP

by mhue26

create_component_instance

Create a Figma component instance by specifying its ID or key, with optional parent placement. Use for local or published components.

Instructions

Create an instance of a component in Figma. For LOCAL components (from get_local_components), use componentId with the id field. For published LIBRARY components, use componentKey with the publishedKey field.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesX position
yYesY position
parentIdNoOptional parent node ID to place the instance into
componentIdNoID of a local component (use the id field from get_local_components result). Use this for unpublished/local components.
componentKeyNoKey of a published library component to instantiate (use the publishedKey field from get_local_components result). Only works for published components.
Behavior3/5

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

With no annotations, the description carries the burden of disclosing behavioral traits. It explains the two-component-type behavior (local vs library) and the corresponding parameter usage, which is valuable. However, it does not disclose potential errors, whether the operation is reversible, or what the return value is. For a mutation tool, this is moderate but not exhaustive.

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?

The description is three sentences, front-loaded with the primary action, and then concisely explains the two parameter usage cases. Every sentence adds necessary information with no repetition or fluff.

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?

Given the tool complexity (5 params, no output schema, no annotations), the description covers the main usage distinction well. It does not explicitly warn that one of componentId or componentKey is required despite neither being listed as required in the schema, which could lead to misuse. However, the description implies a component source is needed, and the schema covers positional details.

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%, so the baseline is 3. The description adds meaning beyond the schema by explicitly mapping componentId to the 'id field' and componentKey to the 'publishedKey field' from get_local_components, which is not present in the schema descriptions. This helps the agent select the correct parameter for the component type.

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 begins with a specific verb and resource: 'Create an instance of a component in Figma.' It clearly distinguishes from sibling creation tools like create_rectangle, create_frame, and create_text by focusing on component instances. It also adds a critical distinction between local and library components, which fully clarifies the tool's purpose.

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?

The description gives clear guidance on when to use componentId vs componentKey based on whether the component is local or published. It references get_local_components, providing actionable context. However, it does not explicitly state 'use this instead of create_rectangle or create_frame,' relying on implicit differentiation from sibling names.

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/mhue26/figma-mcp'

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