Skip to main content
Glama

ModelsLab

Inpaint Image

inpaint-image

Edit specific areas of images using masks. Provide an image, a mask indicating the area to edit, and a prompt describing the desired changes. Returns a request ID that can be used with fetch-image to retrieve results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesText description of what to paint in the masked area.
webhookNoURL to receive webhook notification when generation completes.
model_idYesThe model ID to use for inpainting.
strengthNoStrength of the transformation (0-1). Higher values mean more change.
track_idNoCustom tracking ID for the request.
init_imageYesURL or base64 string of the input image to edit.
mask_imageYesURL or base64 string of the mask image (white areas will be edited, black areas preserved).
negative_promptNoThings to avoid in the generated content.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With only openWorldHint=true in annotations, the description carries most of the behavioral burden and delivers the key trait: this is asynchronous, returning a request ID rather than the image, retrieved later via fetch-image. It omits cost, rate limits, auth, and whether status can be polled instead of fetched.

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?

Three short lines, front-loaded with the core action, then the required inputs, then the return-path. Every sentence earns its place with no 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 an 8-parameter generation tool with full schema coverage and no output schema, the description covers the essential lifecycle: inputs required, async return, and retrieval tool. Minor gap in not mentioning the webhook alternative to fetching results, but nothing critical is missing.

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 all 8 parameters are already documented in the schema, establishing a baseline of 3. The description restates the mask/prompt/image triad and confirms the mask semantics (edit vs preserve), adding little beyond what the schema already states verbatim.

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?

States a specific verb and resource ('Edit specific areas of images using masks') and immediately disambiguates from text-to-image/image-to-image by naming the mask-based workflow. An agent can identify this as the masked-region editing tool 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?

The description gives the required operating context (supply image, mask, prompt) and names the follow-up tool fetch-image for retrieving results, which is clear temporal guidance. It stops short of stating when NOT to use it, e.g. versus image-to-image for whole-image edits or song-inpaint for audio.

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.

Resources