Skip to main content
Glama

Run code in Penpot

penpot_execute

Run JavaScript in the Penpot plugin to build or modify a social post's board using penpot, penpotUtils, and storage; keep each call focused on one step.

Instructions

Runs JavaScript in the Penpot plugin (objects: penpot, penpotUtils, storage) to build or change a post's board. Keep each call to one step.

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": {
      "code": "<code>"
    },
    "name": "penpot_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes

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, the description carries the full disclosure burden. It does add meaningful beyond-schema context by naming the runtime globals and the one-step constraint, but it omits what a call returns, how errors surface, whether state/storage persists across calls, and whether changes are destructive or reversible to the board. For arbitrary code execution this is a significant remaining gap.

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?

Two short sentences, front-loaded with the core action, and the granularity constraint is placed where it is easy to catch. No filler. Slightly terse for the risk profile of the tool, but structurally clean.

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?

There is no output schema and no annotations, so the description is the only contract, and it stops short of describing return values, error behavior, or persistence of the storage object across calls. It is adequate to attempt a call but not to predict the outcome of one.

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 single parameter has 0% schema description coverage (only a non-empty string constraint), so the description must compensate. It partially does by establishing that the string is JavaScript and which globals are in scope, but it gives no examples, no success/failure contract, and no note on how the code's result is surfaced.

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 concrete verb+resource: it 'Runs JavaScript in the Penpot plugin' and scopes the intent to building or changing a post's board. It also names the globals available (penpot, penpotUtils, storage), which tells an agent this is arbitrary script execution rather than a narrow action tool. It does not explicitly contrast with siblings like penpot_upload_image, but the execution semantics are specific enough to distinguish it.

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?

'Keep each call to one step' is real operational guidance on granularity, which is useful for a code-execution tool. However, there is no guidance on when to prefer this over declarative siblings (upload image, render post) or on what conditions make execution appropriate. Usage is implied rather than stated.

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