Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

by Shivam990q

canvas_create_rectangle

Creates a named rectangle with specified width, height, and optional corner radius on the active Figma canvas through a companion plugin.

Instructions

Creates a rectangle shape on the active Figma canvas via companion plugin.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
widthYes
heightYes
cornerRadiusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and does not meet it. It does not say where the rectangle is placed on the canvas (notably, no x/y parameters exist), whether it is added to the active page or selection, whether the plugin must be connected, or what identifier is returned.

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?

It is a single efficient sentence with the action front-loaded and no wasted words. However, the brevity reflects under-specification rather than disciplined conciseness, since critical invocation details are absent.

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 mutation tool with no annotations, no output schema, and zero-documented parameters, the definition is thin. An agent cannot determine placement behavior, the meaning of the required fields, or the result of a successful call from this description alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across four parameters, and the description explains none of them. It never clarifies what 'name' controls (layer name?), the unit or constraints of 'width'/'height', or that 'cornerRadius' is optional and what its default is, leaving the schema entirely unassisted.

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 gives a specific verb and resource ('Creates a rectangle shape') and names the target surface ('active Figma canvas'), which is clearly distinguishable from siblings like canvas_create_frame or canvas_create_text. It stops short of explicitly contrasting itself with those siblings, so it is clear but not maximally differentiated.

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 use this tool versus canvas_create_frame, canvas_create_hero_section, or canvas_insert_code, and no stated prerequisites. The only contextual hint is the passing phrase 'via companion plugin,' which implies a runtime dependency without explaining it.

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