Skip to main content
Glama

create_instance

Creates a component instance in a target Figma file from a local component id or library component key, letting you place and customize instances by position, parent, and property values.

Instructions

Create an instance of a local component (id) or a library component/component set (key).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_instance"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
parentIdNo
propertiesNoInstance property values, e.g. {"Size":"Large"}
componentIdNo
componentKeyNo
isComponentSetNoSet when componentKey is a component set key (uses its default variant)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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, yet it only says an instance is created. It does not state where the instance lands (parentId), whether a parent is required, that it mutates the document, what happens for component sets, or what the call returns.

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 front-loaded sentence with no filler, and the two sourcing modes are stated up front. It is efficient, though the terseness borders on under-specification rather than genuine economy.

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 an eight-parameter mutation tool with no annotations, no output schema, and a nested 'properties' object, one sentence is far from sufficient. Placement arguments, parent requirements, and the local-vs-library interplay are not covered adequately.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is low (38%) and five of eight parameters have no descriptions at all. The description does add real meaning for componentId vs componentKey (local vs library), but leaves x, y, and parentId entirely unexplained in both schema and description.

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 gives a specific verb and resource ('Create an instance') and distinguishes the two sourcing modes: a local component via id, or a library component/component set via key. It is clear enough to separate it from create_component or duplicate_nodes, though it names no sibling 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: the parenthetical '(id)' vs '(key)' tells the agent which parameter applies to local vs library components. There is no statement of when to prefer this over duplicate_nodes or the other create_* tools, no prerequisites, and no exclusions.

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