Skip to main content
Glama

edit_image

Edit an existing image using AI. For the selected image of an existing shot use regenerate_shot_image. For a standalone image, provide the media ID and a text prompt describing what to change. Creates a new version and preserves the original. Uses Nano Banana 2.1 (google-nano-banana-2-1).

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": {
      "workspaceId": "<workspaceId>",
      "mediaId": "<mediaId>",
      "editPrompt": "<editPrompt>"
    },
    "name": "edit_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoImage edit model ID. Uses the default if omitted.
mediaIdYesMedia ID of the existing image to edit
editPromptYesInstructions for what to change in the image (e.g., "make the sky more orange", "add a hat to the character")
workspaceIdYesThe workspace ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral disclosure burden. It usefully states that the tool creates a new version and preserves the original, and it identifies the underlying model, but it does not cover permissions, rate limits, failure behavior, or output format.

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

Conciseness4/5

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

The description is front-loaded and efficient: purpose first, then alternative routing, then key behavior and model detail. The model name sentence is slightly incidental but still useful context, so it falls just short of maximum conciseness.

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 four-parameter image-editing tool with full schema coverage and no output schema, the description covers the core purpose, alternative routing, non-destructive versioning behavior, and model. It is nearly complete, though additional operational details such as permissions or error handling would strengthen it further.

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 already 100%, so the schema documents mediaId, editPrompt, workspaceId, and model. The description adds context that mediaId refers to a standalone image and that editPrompt describes what to change, but it does not add syntax or format details beyond the schema baseline.

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 uses a specific verb and resource: 'Edit an existing image using AI.' It immediately clarifies the tool's scope and distinguishes it from the sibling regenerate_shot_image by explaining that regenerate_shot_image is for selected images of existing shots.

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

Usage Guidelines5/5

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

It provides explicit routing guidance: use regenerate_shot_image for a selected image of an existing shot, and use this tool for a standalone image by supplying a media ID and prompt. This gives a clear when-to-use and when-to-use-alternative 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.