Skip to main content
Glama

Design Studio

penpot_design_replace_section

Replace one section of a Craft design already on the canvas with a new version, for a follow-up change. The new section goes where the old one was; the old one is hidden and renamed, never deleted, so the designer can bring it back. Pictures the new version keeps (same layer name) are carried over. Only layers the design created are touched.

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": {
      "expectedFileId": "<expectedFileId>",
      "expectedPageId": "<expectedPageId>",
      "designId": "<designId>",
      "parent": "<parent>",
      "old": "<old>",
      "layout": "<layout>"
    },
    "name": "penpot_design_replace_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
oldYes
setNo
layoutYesstudio.layout.v1 with one board: the parent, holding only the new section.
parentYes
designIdYes
picturesNo
expectedFileIdYes
expectedPageIdYes

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare the non-destructive, non-idempotent, closed-world profile; the description adds real substance beyond that by explaining that the old section is hidden and renamed rather than deleted, that it can be restored, and that pictures are carried over by matching layer name. It does not cover failure modes, permission needs, or what happens on a failed replace.

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?

Four short sentences, front-loaded with the action and immediately followed by placement and reversibility. Each sentence carries information; phrasing is a little informal ('Pictures the new version keeps') but nothing is redundant.

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?

The operational narrative is strong for a mutating, nested-object tool with no output schema, and annotations cover the safety profile. The definition still leaves the required identity/concurrency parameters and the shape of 'old'/'parent'/'set' unexplained, which is a meaningful gap for a tool that must be invoked with six required inputs.

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

Parameters2/5

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

Schema description coverage is only 13% and 8 parameters exist, yet the text explains only 'pictures' indirectly ('same layer name') and hints at the layout structure. Required inputs such as 'old', 'parent', 'set', and especially the 'expectedFileId'/'expectedPageId' concurrency guards are left with no semantic explanation in either schema or prose.

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?

States a specific verb ('Replace'), an equally specific resource ('one section of a Craft design already on the canvas'), and the scope of the outcome ('goes where the old one was'). This is clearly distinguishable from penpot_apply_design (initial application) and penpot_design_remove (removal), not merely a restatement of the tool name.

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?

'For a follow-up change' implies this is the revision path rather than the initial apply path, and 'Only layers the design created are touched' sets a boundary condition. However, no sibling tool is named as an alternative and no explicit when-not-to-use case is given, leaving the agent to infer the choice against penpot_apply_design and penpot_design_remove.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources