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. Charged in USD to your PopNow balance; 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
imageNoChatGPT only: the photo the user attached. Use image_url everywhere else.
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.
max_usdNoApproved maximum in USD as a decimal string with up to 9 fractional digits, copied from the quoted cost_usd. Set it only after the user approves; leave it out to get a quote. Nothing is charged without it.
currencyNoOptional. Always USD for this endpoint.
image_urlNoThe photo to edit: a public https link, or a popnow:// link from an earlier result.
aspect_ratioNoOptional new shape, for example 1:1, 16:9, 9:16. Default keeps the original shape.
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. 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 mutation and open-world profile (readOnly=false, destructive=false, openWorld=true, idempotent=false), so the bar is lower. The description adds genuinely new information beyond them: the operation is billed in USD against a PopNow balance and the tool quotes the price before charging, which materially affects how an agent should sequence the call.

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 short sentences, zero filler, with the capability statement front-loaded and the billing caveat second. Every clause carries weight and nothing is repeated from the schema.

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 an 8-parameter, nested-schema, paid mutation tool, the definition covers the essentials: what it does, that it costs money, and that a quote precedes a charge. The one gap is return behavior (that the result is a new image reachable via a popnow:// link), which the description only alludes to indirectly through the schema.

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% and the schema already explains max_usd as the approval gate, the model default, image vs image_url, and aspect_ratio. The description adds only that the edit is expressed in plain words, which the schema prompt description already states, so this is the baseline 3.

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?

"Change a photo with words" gives a clear verb plus resource, and the examples (new style, new outfit, new background, add or remove things) pin down the scope of editing. It does not name or differentiate itself from near-siblings such as create_image, expand_image, or erase_object, so an agent must infer the boundary.

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?

The description implies usage (prompt-driven edits of an existing photo) and surfaces the paid-quote flow, but never states when to pick this over create_image, expand_image, or the specialized effect tools. No exclusions or prerequisites are given.

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.