Skip to main content
Glama

Process an image in Pixelmator Pro

pixelmator_process_image

Process images with Pixelmator Pro by applying ML, auto-adjust, color, crop, and resize operations, then export to a new file without altering the source.

Instructions

Open an image in Pixelmator Pro, run ML and auto-adjust operations, apply color adjustments, crop and resize, then export to a new file. The input file is never modified. Returns input and output pixel sizes.

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": "<input>",
      "output": "<output>"
    },
    "name": "pixelmator_process_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsNoOperations run in order before crop and resize. ML ones: remove_background (use png/webp/heic/tiff to keep transparency), super_resolution (always ×3), enhance, denoise, deband. Auto adjustments: auto_white_balance, auto_light, auto_color_balance, auto_hue_saturation. Geometry: trim_canvas, rotate_*, flip_*.
cropNoCrop rectangle in pixels from the top-left, applied after ops and before resize.
inputYesAbsolute path (or ~/…) of the source image
formatNoOutput format. pxd keeps layers (Pixelmator's own format).png
outputYesPath for the result. The format's extension is added if missing.
resizeNoResize with Lanczos after ops and crop. Give width only, height only (aspect kept), both (exact), or longEdge.
qualityNo1–100 for jpeg, heic, webp and avif. Omit for the app default.
overwriteNoReplace the output file if it already exists
colorAdjustmentsNoColor adjustments on the current (top) layer, most range −100…100, e.g. {"exposure": 20, "saturation": -10}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnly=false and destructive=false; the description adds genuinely useful behavior beyond that by stating the input file is never modified and that results go to a new output file, plus that it returns input and output pixel sizes. It doesn't cover failure modes, whether the app must be running, or what happens when the output exists (left to the overwrite param).

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 sequence and followed by the two facts an agent most needs (input preserved, sizes returned). No filler or redundancy.

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?

For a 9-parameter, nested-object tool with no output schema, the description compensates by stating the return values (input and output pixel sizes) and the non-destructive input guarantee. Remaining gaps are environmental (app state, error handling), which are secondary for correct invocation given the exhaustive schema.

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 100% and the schema itself documents op ordering, crop-after-ops, resize modes, format/quality, and color adjustment ranges in detail. The description adds only the high-level ordering of stages, so it neither repeats nor extends parameter meaning significantly. Baseline 3 applies when the schema carries the semantics.

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 names a concrete resource (an image in Pixelmator Pro) and enumerates the pipeline: open, ML/auto-adjust ops, color adjustments, crop/resize, export. An agent immediately knows this is a single-image transform-and-export tool. It stops short of naming a sibling such as pixelmator_batch_process to contrast the one-image scope explicitly.

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 by the singular 'an image' and the pipeline description; there is no statement of when to prefer this over pixelmator_batch_process or pixelmator_image_info, and no prerequisites (e.g. Pixelmator Pro availability) are mentioned. The pipeline ordering hints at composition but doesn't guide tool selection.

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