Skip to main content
Glama

Upload a local image to Penpot

penpot_upload_image

Upload an image from your computer or brand kit into the open Penpot file, storing it under a key so it can be applied as a fill.

Instructions

Uploads an image from this computer (for example a photo in the brand kit's assets/ or style/ folder) into the open Penpot file and keeps the result in the plugin's storage under storage_key, ready to use as a fill: {fillOpacity: 1, fillImage: storage[storage_key]}.

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": {
      "file": "<file>",
      "storage_key": "<storage_key>"
    },
    "name": "penpot_upload_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesA path, or a path inside the brand kit such as assets/photo.jpg
nameNo
storage_keyYese.g. p03_photo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.3

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and does disclose the important side effect: the asset is persisted in the plugin's storage under storage_key and consumed via {fillOpacity: 1, fillImage: storage[storage_key]}. It does not say what happens if storage_key already exists, what the call returns, or any limits on file type/size.

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?

A single front-loaded sentence with the verb first and no filler; the fill snippet earns its space by showing the concrete consumption pattern. Slightly dense but not padded.

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 three-parameter mutation tool with no annotations and no output schema, the description covers the destination and the post-upload usage pattern, but leaves the `name` parameter, the response value, and collision/overwrite behavior undocumented. Adequate, not complete.

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?

The description explains the source semantics of `file` (local path, brand-kit-relative) and the role of `storage_key` (where the uploaded asset is retained), which extends the schema's terse notes. The optional `name` parameter, which has no schema description, is never addressed, and no format or overwrite semantics for storage_key are given.

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 opens with a concrete verb+resource ("Uploads an image from this computer ... into the open Penpot file") and states the end state (stored under storage_key, usable as a fill). That scope contrasts with a brand-file-adding sibling, but the routing is implicit rather than naming an alternative tool.

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

Usage Guidelines3/5

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

Usage is only implied through an example ("a photo in the brand kit's assets/ or style/ folder") and the intended downstream use as a fill. There is no explicit statement of when to choose this over adding a brand file or uploading elsewhere, and no exclusions.

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