Skip to main content
Glama

Create rectangle

figma_create_rectangle
Idempotent

Creates rectangles in Figma with width, height, optional fill, corner radius, and stroke. Use it to add editable shape layers to a design or parent frame.

Instructions

A rectangle with an optional fill, corner radius and stroke. Editors: Design; unverified: FigJam, Slides.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNo
yNo
fillNo
nameNo
widthYes
heightYes
sizingNoHow it sizes, as in Figma's panel: { "horizontal": "fill" } to take the parent column's width; "hug" fits content; "fixed" keeps the number.
strokeNo
sessionNoOptional sessionId or file name, to pick a Figma file when more than one is connected.
parentIdNo
cornerRadiusNo
strokeWeightNoDefault 1 when a stroke is given.
idempotencyKeyNoCaller-owned retry key, ≤128 chars. Re-calling with the same key never executes twice: it returns the existing result, or waits for the op still in flight. Supply your own for anything large — if the MCP client times out (rather than the bridge), only a key you chose can be used to retry safely.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true, openWorldHint=false), so the bar is lower. The editor-compatibility note is genuine extra context not derivable from annotations, but the description says nothing about where the new node lands, permissions needed, or whether it fails outside Design — gaps for a creation tool.

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?

Two short sentences with no filler, and the property summary is front-loaded ahead of the platform note. The first sentence is a noun fragment rather than a statement of action, which costs a little clarity but not length.

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 13-parameter creation tool with no output schema and sparse schema descriptions, the description is far too thin: it does not say what is returned (e.g. the created node id), where the rectangle is placed by default, or how required width/height interact with x/y. The context an agent needs to call this correctly is largely missing.

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 description coverage is only 31% across 13 parameters. The description names three (fill, corner radius, stroke), which roughly repeats schema names rather than explaining them, and is silent on x/y coordinate semantics, parentId, sizing, name defaults, and units — the areas where the schema provides no description at all.

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

Purpose3/5

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

The name supplies the verb (create) and the description supplies the resource's properties (fill, corner radius, stroke), so the intent is recoverable. But the description itself is a noun fragment with no verb or scope statement, and it does nothing to separate this from its many shape siblings (figma_create_ellipse, figma_create_frame, figma_create_shapes_with_text).

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?

The only usage-adjacent content is 'Editors: Design; unverified: FigJam, Slides', which is platform availability, not when-to-use guidance. There is no statement of when to pick this over figma_create_frame, figma_create_from_spec, or figma_import_svg, and no prerequisites (e.g. must a parent/page be selected first).

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

Deploy Server

Other Tools