Skip to main content
Glama

create_shape

Creates rectangles, ellipses, lines, polygons, and stars in a Figma file to build or edit designs, then returns the created node.

Instructions

Create a basic shape: RECTANGLE, ELLIPSE, LINE, POLYGON or STAR. Size defaults to 100x100 (height defaults to width). LINE: width is the length (no height; use rotation for direction) and gets a black 1px stroke unless stroke is given. POLYGON uses pointCount (sides, default 3); STAR uses pointCount (default 5) and innerRadius (0-1 ratio, default ~0.38). fill/stroke are hex (#RRGGBB / #RRGGBBAA), fill 'none' removes the default grey fill. cornerRadius works on RECTANGLE/POLYGON/STAR. rotation is in degrees (counter-clockwise, around the top-left corner) and is applied after positioning. Returns the created node.

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": {
      "shapeType": "<shapeType>"
    },
    "name": "create_shape"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoPosition relative to parent. If x, y and parentId are all omitted the node is centred in the viewport
yNo
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
fillNoHex color or 'none'
nameNo
widthNoWidth (LINE: length). Default 100
heightNoHeight (ignored for LINE). Default = width
strokeNoHex color or 'none'
parentIdNoParent frame/group/section id; default current page
rotationNoDegrees
shapeTypeYes
pointCountNoPOLYGON sides / STAR points
innerRadiusNoSTAR only: inner radius ratio 0-1
cornerRadiusNo
strokeWeightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does so well: it discloses size defaults, the LINE-only default 1px black stroke, that fill 'none' removes the default grey fill, that cornerRadius only applies to some types, that rotation is counter-clockwise around the top-left and applied after positioning, and that it returns the created node. What it omits is permission/auth requirements and whether the operation is undoable.

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?

The content is front-loaded with the core purpose, then telegraphically organized by shape type and cross-cutting attributes, with no filler sentences. It is dense to the point of terseness, but nearly every clause carries invocation-relevant information.

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 15-parameter mutation tool with no annotations and no output schema, the definition covers the shape-type-specific parameters, defaults, and return value well. Gaps remain around write semantics, the strokeWeight parameter, and the file-selection behavior (the latter is at least covered in the schema), so it is strong but not exhaustive.

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 coverage is a middling 67% across 15 parameters, and the description compensates meaningfully: it defines width-as-length for LINE, height being ignored for LINE, pointCount semantics per shape, innerRadius as a 0-1 ratio with a default, hex format including alpha, and rotation units/order. It still leaves strokeWeight, name, file, x/y, and parentId to the schema, so it does not fully close the gap.

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 opens with a specific verb and resource ('Create a basic shape') and enumerates the five supported shape types, which implicitly scopes it away from create_frame, create_text, or create_connector. It never names the closest sibling (create_shape_with_text), so an agent must infer that boundary rather than being told.

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?

There is strong per-type invocation guidance (LINE takes length via width and no height, POLYGON/STAR use pointCount, STAR needs innerRadius), which tells an agent how to call it correctly. However, there is no explicit statement of when to choose this over alternatives such as create_shape_with_text or create_svg, and the when-not case is only implied.

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