Skip to main content
Glama
tvolodi

penpot-headless

by tvolodi

penpot_upload_media

Upload an image or media asset to a Penpot file, returning its metadata (id, width, height, mtype) for use when creating image shapes.

Instructions

Upload an image or other media asset to a Penpot file and return the media object metadata (id, width, height, mtype). The returned id is used as "mediaId" when creating an image shape via penpot_add_shapes (type: "image"). Supply exactly one of: "filePath" (a local filesystem path the MCP server can read), "url" (an HTTPS URL Penpot's server will fetch directly — nothing passes through the MCP server), or "dataBase64" (base64-encoded bytes, requires "mtype"). The media object is attached to the given Penpot file (isLocal: true by default). After uploading, pass the returned id/width/height/mtype directly into penpot_add_shapes as mediaId/mediaWidth/mediaHeight/mtype for the image shape.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
nameYes
mtypeNo
fileIdYes
isLocalNo
filePathNo
dataBase64No
Behavior4/5

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

No annotations are provided, so the description carries full responsibility. It discloses that url images are fetched directly by Penpot's server (nothing passes through the MCP server) and that isLocal defaults to true. It does not mention any destructive or irreversible effects, which is appropriate for a create operation.

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?

The description is multiple sentences but each sentence adds value. It is front-loaded with the primary purpose and uses a clear structure: purpose, output usage, input methods, additional details. No wasted words.

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

Completeness4/5

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

Given 7 parameters, no output schema, and zero schema descriptions, the description covers the tool's input variations, output meaning, and integration with another tool (penpot_add_shapes). It does not explain error cases or limits, but is sufficiently complete for an agent to use the tool correctly.

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

Parameters4/5

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

Schema description coverage is 0%, yet the description adds meaning for several key parameters: filePath, url, dataBase64 are explained as mutually exclusive sources; dataBase64 requirement for mtype is noted; fileId is contextualized as the target file; isLocal default is mentioned. Not all parameters (e.g., name) are elaborated, but the essential ones are covered.

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 clearly states the action ('Upload an image or other media asset'), the target resource ('to a Penpot file'), and the output ('return the media object metadata'). It distinguishes from sibling tools like penpot_add_shapes by detailing how the returned id is used as mediaId for image shapes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains the three mutually exclusive methods for providing media (filePath, url, dataBase64) and notes that dataBase64 requires mtype. It also clarifies the relationship to penpot_add_shapes. However, it does not explicitly state when not to use this tool or contrast with other upload-like tools (none apparent in siblings).

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/tvolodi/penpot-mcp'

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