Skip to main content
Glama

Edit a photo

edit
Destructive

Makes an edited copy of one of the user's photos, paid from their credits. type change keeps the pose and framing and changes any of: outfit and place (ids from get_pack of the photo's pack; a place that is a pet or a print, not a scene, is not one to change to), light (one of the four, or the photo's pack's own light from get_pack), the attributes (clothes is an outfit from Change's own list, on any photo; sent with outfit, it wins), and text, up to 300 characters of what to change. type zoom_out steps back one step. Pass the price the user agreed to as max_credits: the photo's prices from get_shoot or list_photos name it. Text is rewritten before anything is made: what Luala doesn't make is left out, a look like a named person becomes that styling, and the result's text is what was sent. Fetch the result with list_photos. If a call to this tool got no answer, it may already have started: check list_photos before calling it again.

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": {
      "photo_id": "<photo_id>",
      "type": "<type>",
      "max_credits": "<max_credits>"
    },
    "name": "edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageNo
bodyNo
faceNo
skinNo
textNo
typeYes
againNotrue only when the user, having seen what this same call made, asks for another (a second re-roll of one photo, another take of one shoot). Without it, the same call repeated within 10 minutes answers with what it made and charges nothing: a request already answered is not a new one.
beardNo
chestNo
lightNo
placeNo
makeupNo
outfitNo
clothesNo
glassesNo
photo_idYes
expressionNo
hair_colourNo
hair_lengthNo
max_creditsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / again
      Added value: +{
      +  "description": "true only when the user, having seen what this same call made, asks for another (a second re-roll of one photo, another take of one shoot). Without it, the same call repeated within 10 minutes answers with what it made and charges nothing: a request already answered is not a new one.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / clothes
      Added value: +{
      +  "enum": [
      +    "as_in_photos",
      +    "tux_suit",
      +    "suit_skirt",
      +    "leather_trench",
      +    "basque_dress",
      +    "shearling_aviator",
      +    "cocoon_coat",
      +    "tartan_suit",
      +    "lace_skirt",
      +    "slip_dress",
      +    "peplum",
      +    "slim_suit",
      +    "leather_shirt",
      +    "check_suit",
      +    "wrap_coat",
      +    "puffer",
      +    "knit_vest",
      +    "smart_tracksuit",
      +    "quarter_zip",
      +    "shearling_jacket",
      +    "yellow_knit"
      +  ],
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / hair_colour / enum
      Previous value: -[
      -  "as_in_photos",
      -  "blonde",
      -  "brown",
      -  "black",
      -  "red",
      -  "grey"
      -]New value: +[
      +  "as_in_photos",
      +  "blonde",
      +  "brown",
      +  "black",
      +  "red",
      +  "grey",
      +  "platinum",
      +  "copper",
      +  "burgundy",
      +  "pink",
      +  "blue",
      +  "purple"
      +]
    • changedInput schema / properties / light / enum
      Previous value: -[
      -  "day",
      -  "golden_hour",
      -  "evening",
      -  "studio",
      -  "butterfly",
      -  "shadowless",
      -  "north_window",
      -  "overcast",
      -  "light_painting",
      -  "halo",
      -  "rembrandt",
      -  "low_key_light",
      -  "painterly",
      -  "high_contrast",
      -  "hollywood"
      -]New value: +[
      +  "day",
      +  "golden_hour",
      +  "evening",
      +  "studio",
      +  "butterfly",
      +  "shadowless",
      +  "north_window",
      +  "overcast",
      +  "light_painting",
      +  "halo",
      +  "rembrandt",
      +  "low_key_light",
      +  "painterly",
      +  "high_contrast",
      +  "hollywood",
      +  "hard_sun",
      +  "backlit_sun"
      +]
  4. Changed4 schema fields changed
    • changedInput schema / properties / beard / enum
      Previous value: -[
      -  "as_in_photos",
      -  "clean",
      -  "stubble",
      -  "full"
      -]New value: +[
      +  "as_in_photos",
      +  "clean",
      +  "stubble",
      +  "short",
      +  "full",
      +  "long"
      +]
    • changedInput schema / properties / expression / enum
      Previous value: -[
      -  "as_in_photos",
      -  "smiling",
      -  "calm",
      -  "serious",
      -  "laughing"
      -]New value: +[
      +  "as_in_photos",
      +  "smiling",
      +  "calm",
      +  "serious",
      +  "laughing",
      +  "surprised",
      +  "winking",
      +  "sad"
      +]
    • changedInput schema / properties / hair_length / enum
      Previous value: -[
      -  "as_in_photos",
      -  "short",
      -  "shoulder",
      -  "long"
      -]New value: +[
      +  "as_in_photos",
      +  "short",
      +  "shoulder",
      +  "long",
      +  "pixie",
      +  "bob",
      +  "buzz_cut",
      +  "curly",
      +  "braids",
      +  "bangs",
      +  "bun",
      +  "dreadlocks"
      +]
    • changedInput schema / properties / light / enum
      Previous value: -[
      -  "day",
      -  "golden_hour",
      -  "evening",
      -  "studio"
      -]New value: +[
      +  "day",
      +  "golden_hour",
      +  "evening",
      +  "studio",
      +  "butterfly",
      +  "shadowless",
      +  "north_window",
      +  "overcast",
      +  "light_painting",
      +  "halo",
      +  "rembrandt",
      +  "low_key_light",
      +  "painterly",
      +  "high_contrast",
      +  "hollywood"
      +]
  5. Changed6 schema fields changed
    • addedInput schema / properties / age
      Added value: +{
      +  "enum": [
      +    "as_in_photos",
      +    "younger",
      +    "older",
      +    "much_older"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / body
      Added value: +{
      +  "enum": [
      +    "as_in_photos",
      +    "slimmer",
      +    "athletic",
      +    "muscular",
      +    "bigger"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / chest
      Added value: +{
      +  "enum": [
      +    "as_in_photos",
      +    "fuller",
      +    "smaller"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / face
      Added value: +{
      +  "enum": [
      +    "as_in_photos",
      +    "slimmer",
      +    "jawline"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / glasses / enum
      Previous value: -[
      -  "as_in_photos",
      -  "none",
      -  "glasses",
      -  "sunglasses"
      -]New value: +[
      +  "as_in_photos",
      +  "none",
      +  "glasses",
      +  "sunglasses",
      +  "tinted"
      +]
    • addedInput schema / properties / skin
      Added value: +{
      +  "enum": [
      +    "as_in_photos",
      +    "flawless",
      +    "tanned",
      +    "freckles"
      +  ],
      +  "type": "string"
      +}
  6. First observed

TDQS

A4/5.0
Behavior5/5

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

Goes well past the annotations by disclosing that the operation costs credits and how the charged amount is validated ("Pass the price the user agreed to as max_credits"), that repeats within 10 minutes return the prior result free of charge unless `again` is set, and that a failed call may nonetheless have started so list_photos should be checked before retrying. It also reveals pre-processing behavior (text is rewritten, unsupported requests are dropped, named-person looks become styling). Note the dedup window sits in mild tension with idempotentHint=false, but the `again` escape hatch makes it a nuance rather than a contradiction.

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?

Everything is delivered as one dense paragraph of run-on clauses, so the critical facts (cost, dedup, retry safety) compete with mid-sentence parentheticals rather than being front-loaded or bulleted. There is little filler, but the parsing cost is high for a 20-parameter tool.

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 destructive 20-parameter generation tool with no output schema, the description covers the essentials: it produces a copy rather than mutating the original, it costs credits, how to find the result via list_photos, and how to recover from an unanswered call. The remaining shortfall is that the many appearance enums and their interaction with unchanged values are left unexplained.

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?

With only 5% schema description coverage the description must carry the load, and it does explain several key parameters (max_credits pricing source, outfit/place id sourcing from get_pack, clothes winning over outfit, text's 300-character scope). However, the remaining appearance parameters (face, body, age, skin, hair, makeup, glasses, expression, beard, chest) are collapsed into the vague phrase "the attributes", and the light guidance ("one of the four") does not match the 17-value enum, which can mislead.

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?

States a specific verb and resource ("Makes an edited copy of one of the user's photos") and splits the tool into its two modes ("type change" vs "type zoom_out"). It is clear what the tool produces, but it never distinguishes itself from siblings like reroll, zoom_in or combine, so an agent must infer that boundary from names alone.

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 concrete routing within the tool (use type change for outfit/place/light/attributes/text, zoom_out to step back) and names supporting calls for prerequisites (get_pack for ids, get_shoot or list_photos for prices) and for retrieving results. It lacks explicit when-not-to-use guidance and does not say how this differs from reroll or zoom_in, which is the main gap.

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