Skip to main content
Glama
FigeloMCP
by mmonzera

create_rectangle

Creates a rectangle node in Figma with optional fill, stroke, corner radius, and positioning so you can add styled rectangular shapes to a design.

Instructions

Create a rectangle node with optional fill, stroke, and corner radius.

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_rectangle"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
nameNo
widthNo
heightNo
channelNoOptional Figma document channel, fileKey, or documentName when multiple Figma files are open
fillHexNo
parentIdNo
strokeHexNo
cornerRadiusNo
strokeWeightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/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. It says the fill, stroke and radius are 'optional' but never discloses where the node lands when parentId is omitted, whether the operation mutates the current page, or what permissions/document state are required.

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?

A single efficient sentence with no filler and the key noun front-loaded, so structure is good. However the brevity crosses into under-specification for an 11-parameter tool, so it does not fully earn a high mark.

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?

With 11 parameters, no annotations, no output schema and near-zero schema description coverage, the definition should explain positioning, parenting and return behavior. It does none of these, leaving the agent guessing on most inputs.

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 only 9% and 11 parameters exist, yet the description mentions only fill, stroke and corner radius. Geometry (x, y, width, height), parentId, name, strokeWeight and channel are left entirely to the bare schema, and the surprising fact that no parameters are required is not addressed.

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?

States a specific verb and resource ('Create a rectangle node') and enumerates three optional visual properties, so the agent knows exactly what object is produced. It does not explicitly contrast itself with siblings like create_ellipse or create_frame, but the resource name is distinct enough in practice.

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 guidance on when to choose this over create_frame, create_svg, or create_component, and no mention of prerequisites such as an open Figma document or an active channel. The agent must infer that this is the primitive-shape path.

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