Skip to main content
Glama

export_photo

Write the finished photo: every live filter is baked in and ALL metadata (EXIF, XMP, IPTC, GPS, thumbnail) is stripped. jpg, png, webp and tiff are flattened. psd keeps the layers (masks, opacity, blend modes, groups) for finishing in Photoshop or another editor: text becomes pixels, a group carrying its own filter is merged into one layer, and the result lists layers that may blend slightly differently in Photoshop. A PSD is large (about 50 MB per full-size layer on a 24 MP photo), and a download here is capped at 100 MiB. It is for finishing elsewhere: open_photo does not take a PSD. Returns a download_url (valid 24 hours) plus a preview of what was exported. The link is for the user, and also downloads with a plain GET (e.g. curl -sS -o <dest> <download_url>). Transparency is flattened onto white unless keep_alpha is true (png or webp only), which keeps it, e.g. for a cut-out. The color profile is not metadata and is kept: a wide-gamut photo (a phone's Display P3) is written in its own color space with the profile embedded, so it keeps its full color. color_profile srgb converts to sRGB instead, the safest choice for a viewer that ignores profiles; adobe-rgb converts to Adobe RGB (color photos only). The resultreports the space written (color_profile).

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": {
      "image": "<image>"
    },
    "name": "export_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
imageYesImage id, as returned by open_photo.
formatNoOutput format.jpg
qualityNoJPEG/WebP quality, 1-100 (higher = better/larger). Ignored for png/tiff. WebP itself accepts 0 too, but JPEG's own bound is 1-100, so this schema uses the tighter bound.
filenameNoOptional name for the downloaded file, e.g. "harbour-warm". The extension is added for you; anything but letters, digits, dot, dash and underscore is replaced.
losslessNoWebP only: lossless encoding. Ignored for other formats.
bit_depthNoPNG/TIFF/PSD only: output bit depth. JPEG/WebP are always 8-bit.
keep_alphaNoPNG/WebP only: keep transparency. The visible layers are merged onto a transparent canvas, so areas no layer covers (a cut-out, say) stay transparent. Default false flattens onto white. Refused for JPEG and TIFF.
color_profileNo'keep' writes the image in its own color space with that profile embedded, so a phone's Display P3 photo keeps its full color. 'srgb' converts to sRGB first, the safest choice for viewers that ignore profiles; 'adobe-rgb' converts to Adobe RGB (RGB images only). Plain sRGB is written with no profile, which viewers assume.keep
png_compressionNoPNG only: compression level, 0 (fastest, largest) to 9 (slowest, smallest). The default is lower than the maximum because level 9 is far slower for negligible size gain on a typical photo. Ignored for other formats.
tiff_compressionNoTIFF only: compression scheme (lzw and adobe_deflate are lossless; jpeg is lossy). Ignored for other formats.none

Output Schema

NameRequiredDescriptionDefault
bytesNo
widthNo
formatNo
heightNo
layersNopsd only: layers in the file, groups included.
filenameNo
expires_atNo
download_urlNo
color_profileNoThe image's color space: space is srgb, display-p3, dci-p3, adobe-rgb, prophoto-rgb, rec2020, gray or other; name is the profile's own name (null for plain sRGB); wide_gamut is true when the space holds colors sRGB cannot show.
merged_groupsNopsd only: groups merged into one layer to keep their filter.
mindset_notesNo
rasterized_textNopsd only: text layers written as pixels.
may_blend_differentlyNopsd only: visible layers below 100% opacity or with a blend mode, which Photoshop may render slightly differently.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedOutput schema / properties / editor_notes
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / mindset_notes
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / color_profile
      Added value: +{
      +  "default": "keep",
      +  "description": "'keep' writes the image in its own color space with that profile embedded, so a phone's Display P3 photo keeps its full color. 'srgb' converts to sRGB first, the safest choice for viewers that ignore profiles; 'adobe-rgb' converts to Adobe RGB (RGB images only). Plain sRGB is written with no profile, which viewers assume.",
      +  "enum": [
      +    "keep",
      +    "srgb",
      +    "adobe-rgb"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / color_profile
      Added value: +{
      +  "description": "The image's color space: space is srgb, display-p3, dci-p3, adobe-rgb, prophoto-rgb, rec2020, gray or other; name is the profile's own name (null for plain sRGB); wide_gamut is true when the space holds colors sRGB cannot show.",
      +  "properties": {
      +    "converted_from": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "embedded": {
      +      "type": "boolean"
      +    },
      +    "name": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "space": {
      +      "type": "string"
      +    },
      +    "wide_gamut": {
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties / editor_notes
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  4. Changed6 schema fields changed
    • changedInput schema / properties / bit_depth / description
      Previous value: -"PNG/TIFF only: output bit depth. JPEG/WebP are always 8-bit."New value: +"PNG/TIFF/PSD only: output bit depth. JPEG/WebP are always 8-bit."
    • changedInput schema / properties / format / enum
      Previous value: -[
      -  "jpg",
      -  "png",
      -  "webp",
      -  "tiff"
      -]New value: +[
      +  "jpg",
      +  "png",
      +  "webp",
      +  "tiff",
      +  "psd"
      +]
    • addedOutput schema / properties / layers
      Added value: +{
      +  "description": "psd only: layers in the file, groups included.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / may_blend_differently
      Added value: +{
      +  "description": "psd only: visible layers below 100% opacity or with a blend mode, which Photoshop may render slightly differently.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / merged_groups
      Added value: +{
      +  "description": "psd only: groups merged into one layer to keep their filter.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / rasterized_text
      Added value: +{
      +  "description": "psd only: text layers written as pixels.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  5. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the annotations: discloses that all metadata (EXIF, XMP, IPTC, GPS, thumbnail) is stripped, that text becomes pixels, that groups with filters merge, that PSD output may blend differently in Photoshop, that a 100 MiB download cap applies, and that the URL expires in 24 hours. These are exactly the consequences an agent cannot infer from readOnlyHint=false / openWorldHint=true.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and logically ordered, but roughly 230 words with visible duplication — the color_profile and keep_alpha explanations largely repeat the enum descriptions already in the schema, and there is a typo ('The resultreports'). The PSD sizing/cap detail earns its place; the parameter restatements do not.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, yet the description still supplies the parts that matter operationally: the download_url lifetime, the preview alongside it, and that a plain GET works for the user or curl. Combined with the format caveats and size cap, nothing an agent needs to call this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds conceptual meaning the schema does not: the color profile is not metadata and survives export, wide-gamut P3 is written in its own space with the profile embedded, and srgb is called out as the safe choice for profile-ignoring viewers. keep_alpha's white-flattening behavior is also restated with a cut-out example.

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?

Opens with a specific verb and resource ('Write the finished photo'), then enumerates exactly what that means: filters baked, metadata stripped, format-specific flattening, and PSD layer preservation. It explicitly distinguishes itself from the sibling open_photo ('does not take a PSD'), so an agent can route correctly without reading another schema.

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?

Gives a clear situational rule — use this when finishing elsewhere, in PSD form, because open_photo will not accept a PSD. Format-by-format conditions (psd keeps layers, others flatten) function as selection guidance. It does not explicitly contrast with preview or bake, but the in-tool conditions are strong.

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