Skip to main content
Glama
zcube

Penpot MCP Server

by zcube

create_rectangle

Add a rectangle to a Penpot file with customizable fill, gradient, image, border, corner radius, shadow, blur, and blend mode settings.

Instructions

Create a rectangle shape with colors, gradients, images, borders, rounded corners, shadows, blur, and blend modes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoX position
yNoY position
r1NoTop-left corner radius
r2NoTop-right corner radius
r3NoBottom-right corner radius
r4NoBottom-left corner radius
nameNoShape nameRectangle
widthNoWidth
fileIdYesFile ID
heightNoHeight
pageIdYesPage ID
opacityNoOverall shape opacity (0-1)
blendModeNoBlend mode: "normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"normal
blurValueNoBlur intensity in pixels (for glassmorphism effect)
fillColorNoFill color (HEX, e.g., "#FF0000")
shadowBlurNoShadow blur radius in pixels
fillImageIdNoImage media ID (from upload_file_media)
fillOpacityNoFill opacity (0-1)
shadowColorNoShadow color (HEX, e.g., "#000000")#000000
shadowStyleNoShadow style: "drop-shadow" or "inner-shadow"drop-shadow
strokeColorNoStroke color (HEX)
strokeWidthNoStroke width in pixels
borderRadiusNoAll corners radius (shorthand for r1-r4)
gradientEndXNoGradient end X (0-1 normalized)
gradientEndYNoGradient end Y (0-1 normalized)
gradientTypeNoGradient type: "linear" or "radial"
shadowSpreadNoShadow spread in pixels
fillImageNameNoImage name
gradientStopsNoGradient stops as JSON array, e.g., '[{"color":"#667eea","opacity":1,"offset":0},{"color":"#764ba2","opacity":1,"offset":1}]'
shadowOffsetXNoShadow X offset in pixels
shadowOffsetYNoShadow Y offset in pixels
shadowOpacityNoShadow opacity (0-1)
strokeOpacityNoStroke opacity (0-1)
fillImageMtypeNoImage MIME typeimage/png
fillImageWidthNoImage width in pixels
gradientStartXNoGradient start X (0-1 normalized)
gradientStartYNoGradient start Y (0-1 normalized)
fillImageHeightNoImage height in pixels
fillImageKeepAspectRatioNoKeep image aspect ratio
Behavior2/5

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

No annotations are provided, so the description must carry the full burden of behavioral disclosure. It states the tool creates a rectangle shape but does not mention side effects (e.g., modifying an existing file/page), required permissions, or what the response contains. The feature list is more about parameter capabilities than behavioral context.

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

Conciseness5/5

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

The description is a single, front-loaded sentence that clearly states the main action and then lists capabilities compactly. No unnecessary words or redundancy; it is efficient and easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 39 parameters, two required parameters, and no output schema, the description is minimal but not insufficient. It identifies the tool's broad purpose and capabilities, but it doesn't mention the required file/page context, what the tool returns, or how to combine options. The schema fills most invocation details, but the description leaves some contextual gaps.

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%, so the baseline is 3. The description summarizes groups of parameters (colors, gradients, images, etc.) but adds no new meaning beyond what the schema already provides for each property. It serves as a high-level overview rather than adding semantic detail.

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

Purpose5/5

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

The description uses a specific verb+resource ('Create a rectangle shape') and enumerates the styling capabilities, clearly distinguishing it from sibling tools like create_circle and create_text. It accurately conveys the tool's function and scope.

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 explicit guidance is provided on when to use this tool versus alternatives such as create_frame or create_circle. The description does not mention prerequisites, exclusions, or scenarios where a different creation tool would be more appropriate.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zcube/penpot-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server