Skip to main content
Glama

edit_image

Edit a previously generated image by its img_… id with a natural-language instruction.

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

Input Schema

NameRequiredDescriptionDefault
imageYesimg_… id of a previous generation
modelNonano-banana-2
overlayNo
resolutionNoOutput tier; defaults to the source image's
instructionYesWhat to change
aspect_ratioNoOmit to keep the source image's shape. If set, it is per-model — see list_models.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / aspect_ratio / description
      Added value: +"Omit to keep the source image's shape. If set, it is per-model — see list_models."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, so the mutation/safety profile is already covered. The description adds that the input must be a prior generation id and that instructions are free-form text, but says nothing about whether the edit is synchronous or returns a job (the presence of check_job among siblings makes this a real ambiguity).

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?

A single front-loaded sentence with zero filler; the verb, resource, identifier format, and instruction mechanism are all stated before the reader stops.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutating 6-parameter tool with no output schema, the description covers the core contract but omits the result shape (does it return an image, a job id?) and the async/await behavior implied by check_job. Annotations carry the safety profile, but the workflow gap leaves the agent inferring too much.

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 67% and the schema itself documents overlay, resolution, aspect_ratio and model in detail. The description only restates the two required parameters (image id and instruction), adding no format, constraint, or interaction detail beyond what the schema already provides. 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 specific verb (edit) and resource (a previously generated image), plus the required identifier format (img_… id) and the natural-language instruction mechanism. It implicitly separates itself from generate_image by requiring a prior generation, but never names or contrasts with a sibling explicitly.

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 only implied: the agent can infer this is for modifying an existing image rather than creating one. There is no explicit when-to-use/when-not, no prerequisite statement (e.g., the source id must come from generate_image), and no guidance about the relationship to check_job.

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.