Skip to main content
Glama
neozhehan

Figma Edit MCP

by neozhehan

Create Shape

create_shape

Create rectangles, ellipses, polygons, or stars in Figma, specifying position, size, fill/stroke colors, and shape-specific options such as arc angles, point count, and inner radius.

Instructions

Create a rectangle, ellipse, polygon, or star via type, with position/size and optional fillColor/strokeColor. Shape-specific params (arcData; pointCount/innerRadius) validated by type. pointCount = sides (polygon) or points (star), native count — no even-parity rule.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesX position
yYesY position
nameNoOptional non-empty name for the shape
typeYesThe type of shape to create
widthYesWidth of the shape
heightYesHeight of the shape
arcDataNoOptional arc data for creating arcs/donuts (ELLIPSE only)
parentIdYesParent node ID to append the shape to
fillColorNoFill color in RGBA format
pointCountNoNumber of sides (polygon) or points (star), ≥3. Required for POLYGON and STAR.
innerRadiusNo0.0–1.0, star sharpness (default: 1.0). STAR only.
strokeColorNoStroke color in RGBA format
parentNodeNameYesThe parent node's current exact name, passed back verbatim from `node_info`.
useAbsolutePositionNoIf true and parent is an auto-layout frame, forces absolute positioning to prevent layout shifts.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoID of the created shape
nameNoName of the created shape
errorNo
parentIdNoID of the parent the node was placed into — confirm containment without a follow-up read
Behavior4/5

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

With only openWorldHint=true in annotations, the description takes on substantial behavioral disclosure. It explains that shape-specific params are validated by `type`, clarifies pointCount semantics (sides vs points), and explicitly notes the 'no even-parity rule'—useful nuance not present in structured metadata.

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 two sentences with no filler, front-loads the primary action, and uses inline code for parameter names. The second sentence adds critical nuance about shape-specific validation and pointCount semantics without bloat.

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?

For a complex 14-parameter creation tool with a rich schema and output schema, the description covers the central type-dispatch behavior and key parameter constraints. It does not repeat every parameter (schema covers those) but provides the high-level overview and crucial pointCount clarification needed for correct invocation.

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?

The input schema already describes all 14 parameters (100% coverage), so the baseline is 3. The description adds value beyond the schema by grouping arcData, pointCount, and innerRadius as shape-specific and validated by `type`, and by clarifying pointCount's native-count meaning and the absence of an even-parity rule.

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 uses a specific verb ('Create') and explicitly enumerates the four shape types ('rectangle, ellipse, polygon, or star') via `type`, which clearly distinguishes it from sibling creation tools. It also specifies position/size and optional colors, giving a precise scope.

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 provides clear context for when to use this tool by naming the exact shape types it supports. However, it does not explicitly mention alternatives or exclusion criteria, though the type enumeration makes the intended use fairly unambiguous.

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

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