Skip to main content
Glama

Edit a design

edit_design

Modify an existing design by editing layer properties and text, adding or removing layers/component copies, and repairing review issues; save a copy without altering the input.

Instructions

Change an existing design (.figcraft, or .fig / .sketch / .penpot / .svg, imported best effort) and save a copy: set properties of layers by name or id, change texts, find and replace text, add layers or component copies, delete or rename layers, repair the review findings. The input file is never changed; the result goes next to it (suffix _edited) or to output_dir / output_path.

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": {
      "input_path": "<input_path>",
      "operations": "<operations>"
    },
    "name": "edit_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
scaleNo
suffixNo_edited
formatsNo
previewNo
overwriteNoReplace existing outputs.
input_pathYesAbsolute design file.
operationsYes
output_dirNoAbsolute output folder (default: next to the input; required for new files).
output_pathNoAbsolute output file for the first format (its extension must match).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare it is not read-only, not destructive, and not idempotent; the description adds meaningful context beyond that: the input file is never changed, output is written beside it with a '_edited' suffix or to output_dir/output_path, and foreign formats are imported best effort. It does not say whether operations apply in order or what happens if a target layer name is missing, which is a notable gap for a 2000-operation batch.

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?

Two sentences, front-loaded with the action and the operation list, then the non-destructive output contract. Every clause carries information an agent needs; no filler or restatement of the title.

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 nine parameters, a deeply nested operations array, and no output schema, the description covers the essentials (what can be edited, where output lands, input preservation) but leaves return values and the semantics of scale/formats/preview unaddressed. Adequate to invoke, not complete enough to invoke confidently in edge cases.

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 only 44%, so the description must compensate, and it partly does by explaining the target lookup ('by name or id'), the output destination options, and the suffix behavior. However, several parameters (scale, formats, preview, overwrite) get no explanation in the description, so the low-coverage parameters remain under-specified.

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 opens with a specific verb and resource ('Change an existing design') and then enumerates the concrete edits: set layer properties, change texts, find/replace, add layers or component copies, delete/rename, repair review findings. It also disambiguates scope from create_design by stressing 'existing design' and the copy-to-new-file behavior.

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?

Clear context is given: this is for modifying an existing design, including imported .fig/.sketch/.penpot/.svg files 'best effort', and the 'fix_design' operation explicitly ties it to review findings. What's missing is an explicit routing statement (e.g. use create_design for new files, run review_design first to get findings), so there are no stated exclusions.

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