Skip to main content
Glama

Edit Image

edit_image

Modify an existing image using natural-language instructions: provide the source image URL and desired changes, then receive a signed URL to the edited result stored remotely.

Instructions

Edit an existing image using natural language instructions. Provide the URL of the source image (e.g. a URL returned by generate_image) and describe the changes. The edited image is uploaded to Firebase Storage and a signed URL is returned. Nothing touches local disk.

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

Input Schema

NameRequiredDescriptionDefault
promptYesDescription of the edits to make
resolutionNoSource resolution: '1K' (default), '2K', or '4K'. Final file is always compressed to stay small
source_urlYesURL of the image to edit (e.g. a signed URL from generate_image)
aspect_ratioNoAspect ratio for the output, e.g. '1:1', '16:9'
inline_previewNoWhether to include an inline image preview in the response. Defaults to the server's NANO_BANANA_INLINE_PREVIEW setting. Set false to return the URL only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With zero annotations the description carries the full behavioral burden, and it does disclose the important parts: the result is uploaded to Firebase Storage, a signed URL is returned, and "Nothing touches local disk." It leaves out permissions/auth requirements and whether the source image is modified or left intact.

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?

Four short sentences, front-loaded with the operation and input requirements, then output destination and the disk guarantee. Nothing is repeated twice and nothing is filler.

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 five-parameter tool with no output schema, the definition covers inputs (source URL plus edit description) and the return value (signed URL in Firebase Storage), which is what an agent needs to invoke it correctly. Minor gaps remain around authorization and the fate of the original image, but the core contract is complete.

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 coverage is 100%, so all five parameters including resolution, aspect_ratio and inline_preview are already documented in the schema. The description echoes the source_url semantics ("a URL returned by generate_image") but adds no new meaning such as accepted URL forms, lifetime of the signed URL, or how prompt phrasing affects results. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ("Edit an existing image") plus the mechanism ("natural language instructions"), which cleanly separates it from the generation siblings. Naming generate_image as the source of the URL further pins down its role in the tool family, so an agent can pick it without opening the schema.

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?

It conveys when to use this tool: you already have an existing image (typified by "a URL returned by generate_image") and want changes applied rather than a fresh generation. There are no explicit exclusions or named alternatives beyond that, so it stops short of a full routing statement.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.