Skip to main content
Glama

Edit a photo

edit_image

Change a photo with words: new style, new outfit, new background, add or remove things; character_id adds a saved character's pictures as references. Uses PopNow credits; the tool quotes the price.

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": {
      "prompt": "<prompt>"
    },
    "name": "edit_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOptional PopNow model id (see list_models). Leave empty for the default, Nano Banana 2.1.
promptYesWhat to change, in plain words, for example: make it a watercolor painting, or put her in a red jacket.
image_urlNoThe photo to edit: a public https link, or a popnow:// link from an earlier result.
max_creditsNoThe most PopNow credits the user agreed to spend on this. Only set it after the user confirmed a quoted price.
aspect_ratioNoOptional new shape, for example 1:1, 16:9, 9:16. Default keeps the original shape.
character_idNoOptional character from list_characters (or create_character): keeps the same face, look or product in the result.
production_idNoOptional. Run this inside a production opened with open_production: it is paid from that production's budget and needs no separate approval while the budget lasts.
more_image_urlsNoOptional extra reference photos (https or popnow:// links), for example a product to put in the scene.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / production_id
      Added value: +{
      +  "description": "Optional. Run this inside a production opened with open_production: it is paid from that production's budget and needs no separate approval while the budget lasts.",
      +  "type": "string"
      +}
  2. Changed5 schema fields changed
    • addedInput schema / properties / character_id
      Added value: +{
      +  "description": "Optional character from list_characters (or create_character): keeps the same face, look or product in the result.",
      +  "type": "string"
      +}
    • removedInput schema / properties / currency
      Removed value: -{
      -  "description": "Billing unit: USD for API keys; credits for OAuth (optional for existing OAuth clients).",
      -  "type": "string"
      -}
    • removedInput schema / properties / image
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "ChatGPT only: the photo the user attached. Use image_url everywhere else.",
      -  "properties": {
      -    "download_url": {
      -      "description": "Temporary download link of the attached file",
      -      "type": "string"
      -    },
      -    "file_id": {
      -      "description": "ID of the attached file",
      -      "type": "string"
      -    },
      -    "file_name": {
      -      "description": "Original file name",
      -      "type": "string"
      -    },
      -    "mime_type": {
      -      "description": "MIME type of the file",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "download_url",
      -    "file_id"
      -  ],
      -  "type": "object"
      -}
    • changedInput schema / properties / max_credits / description
      Previous value: -"OAuth only: the most site credits the user agreed to spend on this. Only set it after the user confirmed a quoted price."New value: +"The most PopNow credits the user agreed to spend on this. Only set it after the user confirmed a quoted price."
    • removedInput schema / properties / max_usd
      Removed value: -{
      -  "description": "API key only: maximum approved USD as a decimal string with up to 9 fractional digits. Set currency to USD. Only set after the user confirms the quoted cost_usd. Never convert max_credits.",
      -  "type": "string"
      -}
  3. Changed5 schema fields changed
    • addedInput schema / properties / currency
      Added value: +{
      +  "description": "Billing unit: USD for API keys; credits for OAuth (optional for existing OAuth clients).",
      +  "type": "string"
      +}
    • changedInput schema / properties / image / type
      Previous value: -[
      -  "null",
      -  "object"
      -]New value: +"object"
    • changedInput schema / properties / max_credits / description
      Previous value: -"The most credits the user agreed to spend on this. Only set it after the user confirmed a quoted price."New value: +"OAuth only: the most site credits the user agreed to spend on this. Only set it after the user confirmed a quoted price."
    • addedInput schema / properties / max_usd
      Added value: +{
      +  "description": "API key only: maximum approved USD as a decimal string with up to 9 fractional digits. Set currency to USD. Only set after the user confirms the quoted cost_usd. Never convert max_credits.",
      +  "type": "string"
      +}
    • changedInput schema / properties / more_image_urls / type
      Previous value: -[
      -  "null",
      -  "array"
      -]New value: +"array"
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare the operation is a non-read-only, open-world, non-idempotent mutation, but they say nothing about cost. The description adds the important commercial context: it spends PopNow credits and quotes the price, which tells the agent to surface a price before committing. It does not state that repeat calls produce different results and re-charge, but the credit disclosure covers the main practical risk.

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

Conciseness5/5

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

Two sentences, both front-loaded: the first defines the operation and its capabilities, the second flags the cost model. Nothing is redundant and nothing needs re-reading.

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?

With 8 parameters all fully described in the schema and a rich annotation set, the description only needs to carry purpose and cost, and it does both. The one gap is that it never routes the agent among the specialized edit siblings or hints at the returned asset, though the schema's popnow:// reference notes partially cover the latter.

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?

Schema description coverage is 100%, so every parameter is already documented in the schema, including model, image_url, max_credits and production_id. The description's only parameter-related content — character_id adding saved character references — restates what the schema already says, so it adds no meaning beyond structured data. Baseline 3 applies.

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 concrete verb and resource ("Change a photo with words") and backs it with concrete edit categories: style, outfit, background, add/remove. It never names or distinguishes itself from the many overlapping editors in the sibling list (erase_object, change_pose, relight_photo, expand_image), so an agent cannot tell from the description alone which editor to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by "Change a photo with words" — this is the general-purpose prompt-driven editor — but there is no explicit when-to-use or when-not guidance relative to the specialized editing siblings. The credit/quote note gives a hint about the approval workflow but is framed as behavior, not as a selection rule.

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.