Skip to main content
Glama
Figma Vector MCP

Figma Vector MCP

by workingmodel

create_rectangle

Add a rectangle to a Figma canvas by specifying width, height, position, parent frame, layer name, and fill color.

Instructions

Create a rectangle on the Figma canvas.

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

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
nameNoLayer name
widthYes
heightYes
parentIdNoParent frame/group node ID
fillColorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and largely fails it. It does not say where the rectangle is placed, what happens if x/y are omitted, whether the operation requires an active Figma document or selection, or whether it returns the new node's ID.

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 sentence with no filler, so nothing is wasted, but it is under-specified rather than genuinely concise. There is no structure to front-load the information an agent would need.

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 7 parameters, a nested object, no annotations, and no output schema, this definition is incomplete. An agent cannot know coordinate defaults, whether creation is undoable, or what identifier comes back, all of which matter before invoking a canvas-mutating tool.

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?

With only 29% schema description coverage across 7 parameters, the description must compensate and adds nothing. Defaults and semantics for x, y, width, and height are undocumented in both the schema and the description, and 'fillColor' structure is only described inside the schema itself.

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 on the Figma canvas.' The agent can tell it creates a rectangle rather than an ellipse or frame, though the description does not explicitly differentiate it from the many sibling create_* tools.

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?

No when-to-use guidance, no prerequisites, and no mention of alternatives such as create_ellipse or create_frame even though nearly identical create_* siblings exist. The agent must infer everything from the tool name and schema.

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