Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

create_rectangle

Creates a rectangle in a Figma file at specified X/Y coordinates with defined width and height, optionally naming it and attaching it to a parent node.

Instructions

Create a rectangle

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": {
      "x": "<x>",
      "y": "<y>",
      "width": "<width>",
      "height": "<height>"
    },
    "name": "create_rectangle"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesX position
yYesY position
nameNoOptional name for the rectangle
widthYesWidth of the rectangle
heightYesHeight of the rectangle
parentIdNoOptional parent node ID to append the rectangle to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.3/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, and it discloses almost nothing. It implies a mutation but says nothing about coordinate space, units, whether the node is appended to the current page when parentId is omitted, or what is returned after creation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of waste, but its brevity reflects under-specification rather than discipline. There is no structure to speak of, just a bare verb phrase.

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 six-parameter mutation tool with four required parameters, no annotations and no output schema, the definition is far too thin. An agent cannot determine placement semantics, defaults, or the result of the call from this description.

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 description coverage is 100%, with each of the six parameters individually documented, so the schema does the heavy lifting and the baseline of 3 applies. The description adds no meaning beyond the schema, notably nothing about what parentId defaults to when omitted.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Create a rectangle" restates the tool name with no additional scope, so the description is effectively a tautology. It does signal a create operation on a rectangle, but it doesn't distinguish this tool from the many sibling create_* tools (create_ellipse, create_frame, create_section) by saying anything about where the rectangle lands or how it differs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance and no mention of alternatives or prerequisites. An agent must infer entirely from the name that this is the drawing primitive to pick over create_frame or create_section, and nothing indicates the required parent context.

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