Skip to main content
Glama

Edit photo details

update_media
Idempotent

Edit one photo or video: claim it into a trip, rewrite its description, or correct its time, place, crop and rotation. When you correct a timestamp or coordinates, correct exif_source / tz_source in the same call — the value and the evidence for it must stay consistent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
geoNoReverse-geocoded place. Normally filled by the server from lat/lng — you rarely set it. See learn('recipes/geocode').
latNo
lngNo
cropNoCrop, two forms: an explicit rectangle {x,y,w,h} in 0-1 fractions from the top-left, or {aspect, gravity} to let the server frame it. null clears the crop. See learn('media').
focalNoSubject position as {x,y} in 0-1 fractions. Layouts frame around it instead of the centre. Does not alter the image.
creditNoWhere a reference image came from.
rotateNoClockwise degrees; null clears rotation. EXIF orientation is already applied; use this only for a deliberate turn.
previewNoReturn the cropped result for you to look at (default true). Turn off for batch edits.
trip_idNoClaim this media into one of your trips. Unclaimed media sits in a pool until then.
keywordsNoSpace-separated search terms, in the traveller's language.
media_idYes(must not be empty)
tz_offsetNoMinutes east of UTC at the place of capture (Tokyo 540, Paris 120).
tz_sourceNoWhere tz_offset came from. Set to 'given' once you supply a real one.
provenanceNo'reference' means someone else's picture and requires credit. Switching back to 'own' clears credit.
descriptionNoWhat this shows. People read it — the traveller years from now, and friends who open the share link — so write it in the language the traveller speaks, not English. Be concrete: name the dish, the street, the light. Empty is rejected.
exif_sourceNoWhere the time and coordinates came from. See learn('recipes/exif').
location_nameNoWhat the traveller calls this place — a venue or landmark. Reverse geocoding fills geo separately.
occurred_at_utcNoCapture time, epoch milliseconds UTC.
contributor_person_idNo(must not be empty)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / contributor_person_id
      Added value: +{
      +  "description": "(must not be empty)",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedInput schema / properties / rotate / description
      Previous value: -"Clockwise degrees. EXIF orientation is already applied; use this only for a deliberate turn."New value: +"Clockwise degrees; null clears rotation. EXIF orientation is already applied; use this only for a deliberate turn."
    • changedInput schema / properties / rotate / enum
      Previous value: -[
      -  90,
      -  180,
      -  270
      -]New value: +[
      +  90,
      +  180,
      +  270,
      +  null
      +]
    • changedInput schema / properties / rotate / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources