Skip to main content
Glama

open_photo

Open a photo and get its image id, which every other tool uses. source is an upload handle "upload:" (from request_upload), the name of one of your uploads, "latest" for the newest upload ("latest:2" the one before it), the download_url of one of your exports (a way back to a version you exported, for example after a photo was lost), or a public https:// image URL the server downloads itself (a photo share link works). It never opens a file path. Accepts JPEG, PNG, TIFF, WebP and HEIC, and RAW camera files on the larger workspace (the optional raw object sets white balance, exposure and highlights for a RAW file). A source can also be one of the built-in sample photos, listed by inspect what=uploads (sample:<name>, or its file name when none of your uploads has it). precision promotes bit depth before grading (16-bit only up to a size limit that overview lists). Up to 2 photos stay open at once: opening another saves and closes the one used least recently, which reopens by itself, edits intact, the next time a tool names it. Uploads and open photos belong to this server; a photo opened through another Editmamei connector stays with that connector.

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": {
      "source": "<source>"
    },
    "name": "open_photo"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawNoOnly for a RAW camera file (an error for any other source): how it is developed. White balance, exposure and highlight recovery; each is optional.
sourceYes"upload:<upload_id>" as returned by the upload (the name of one of your uploads also works), or an https:// image URL.
precisionNoPromote bit depth on open. 'keep' leaves the file's own precision; '16' converts to 16-bit BEFORE any grading, which avoids banding from an aggressive tone move on an 8-bit source. On this server '16' is refused above a size limit (memory); overview lists it.keep

Output Schema

NameRequiredDescriptionDefault
imageNo
widthNo
heightNo
layersNo
base_typeNo
precisionNo
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • 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"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / raw
      Added value: +{
      +  "description": "Only for a RAW camera file (an error for any other source): how it is developed. White balance, exposure and highlight recovery; each is optional.",
      +  "properties": {
      +    "exposure": {
      +      "default": 0,
      +      "description": "Exposure change in stops, -2 to +3.",
      +      "maximum": 3,
      +      "minimum": -2,
      +      "type": "number"
      +    },
      +    "highlights": {
      +      "default": "blend",
      +      "description": "'clip' cuts blown highlights, 'blend' softens them into the surroundings, 'rebuild' tries to reconstruct them.",
      +      "enum": [
      +        "clip",
      +        "blend",
      +        "rebuild"
      +      ],
      +      "type": "string"
      +    },
      +    "white_balance": {
      +      "default": "camera",
      +      "description": "'camera' uses the white balance the camera recorded, 'auto' averages the whole picture.",
      +      "enum": [
      +        "camera",
      +        "auto"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / precision / description
      Previous value: -"Promote bit depth on open. 'keep' leaves the file's own precision; '16' converts to 16-bit BEFORE any grading, which avoids banding from an aggressive tone move on an 8-bit source. On this server '16' is refused above 12.2 MP (memory)."New value: +"Promote bit depth on open. 'keep' leaves the file's own precision; '16' converts to 16-bit BEFORE any grading, which avoids banding from an aggressive tone move on an 8-bit source. On this server '16' is refused above a size limit (memory); overview lists it."
  4. Changed1 schema field changed
    • changedInput schema / properties / precision / description
      Previous value: -"Promote bit depth on open. 'keep' leaves the file's own precision; '16' converts to 16-bit BEFORE any grading, which avoids banding from an aggressive tone move on an 8-bit source. On this server '16' is refused above 12 MP (memory)."New value: +"Promote bit depth on open. 'keep' leaves the file's own precision; '16' converts to 16-bit BEFORE any grading, which avoids banding from an aggressive tone move on an 8-bit source. On this server '16' is refused above 12.2 MP (memory)."
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: the tool returns an image id used by every other tool, never opens file paths, accepts specific image and RAW formats, may download public URLs server-side, and manages at most two open photos by saving and closing the least recently used one. It also clarifies ownership boundaries for uploads and open photos across connectors, which is valuable operational context not captured by the annotations.

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?

The description is front-loaded with purpose and the returned image id, then proceeds through source forms, formats, RAW handling, precision, and state limits. It is dense but mostly earns its length given the tool's complexity; some source-form details are packed into a single long sentence and could be structured more cleanly, but there is little outright waste.

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?

For a complex open/load tool with nested RAW options, enum precision behavior, URL fetching, and state management, the description covers the critical operational details an agent needs. Since an output schema exists, it does not need to explain the return structure beyond noting that an image id is returned.

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

Parameters5/5

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

Although schema description coverage is 100%, the description adds substantial meaning beyond the schema, especially for `source`: it documents 'latest', 'latest:2', export download URLs, public URLs, sample names, and upload names that the schema does not enumerate. It also clarifies the RAW-only restriction on `raw` and the size-limit behavior for `precision` with '16', tying it to `overview`.

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: 'Open a photo and get its image id, which every other tool uses.' It immediately establishes the tool's role in the workflow and distinguishes it from downstream editing tools that require the returned image id.

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?

It gives extensive guidance on valid source forms, including upload handles, upload names, 'latest', 'latest:2', export download URLs, public image URLs, and built-in samples discovered through `inspect` what=uploads. It also explicitly excludes file paths and explains when the optional `raw` object applies. It does not explicitly discuss when to use `close_photo` versus relying on the automatic least-recently-used closing behavior.

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