Skip to main content
Glama

convert_mode

DestructiveIdempotent

Convert the photo's base color mode, rgb <-> grayscale; an indexed photo is refused outright as a source. Converting to grayscale permanently discards color; converting a grayscale photo to rgb does not restore it. A no-op when the photo is already in the requested mode (reported as converted: false, nothing else changes; this is checked BEFORE the refusal below, so a no-op call never fails just because a filter is present). Otherwise REFUSES outright while the photo has ANY live filter, since a color-dependent filter (curves on the red channel, hue_saturation, a vignette color...) could change meaning across the mode change: bake it first (bake) or delete it (manage_filters op=delete), then convert. IRREVERSIBLE in this session: there is no undo, so make a checkpoint first when in doubt.

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>",
      "mode": "<mode>"
    },
    "name": "convert_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesTarget base color mode. An indexed source image is refused outright.
imageYesImage id, as returned by open_photo.

Output Schema

NameRequiredDescriptionDefault
modeNo
convertedNo
mindset_notesNo

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. Changed1 schema field changed
    • addedOutput schema / properties / editor_notes
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources