Skip to main content
Glama

Inpaint sprite

inpaint_sprite

Inpaint a selected region of an existing sprite by supplying an image and matching mask, then composite the generated patch while preserving pixels outside the mask.

Instructions

Inpaint a selected region of an existing sprite. image_path and mask_path must have equal dimensions. The returned patch is clipped to the original binary mask, then composited with source pixels outside the mask preserved. Set overlay_path to save transparent patch PNGs as well as composite PNGs.

Input Schema

NameRequiredDescriptionDefault
seedNo
promptYes
paletteNo
variantsNo
mask_pathYes
backgroundNoauto
image_pathYes
output_dirNo
overlay_pathNo
preserve_paletteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already indicate this is a non-readonly, non-destructive, non-idempotent operation. Beyond that, the description usefully discloses compositing behavior: the patch is clipped to the binary mask, source pixels outside the mask are preserved, and overlay_path saves transparent patch and composite PNGs.

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 three sentences, front-loaded with the core action, and each sentence adds relevant information about constraints or output behavior. There is little wasted text.

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 10-parameter generation tool with no output schema and 0% schema description coverage, the description covers the central operation and compositing behavior but leaves many parameters undocumented. It is minimally viable but incomplete for reliable invocation across all options.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 10 parameters. The description only addresses image_path, mask_path, and overlay_path, leaving prompt, seed, variants, palette, background, output_dir, and preserve_palette unexplained.

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?

The description states a specific verb and resource: inpainting a selected region of an existing sprite. It is clear what the tool does, though it does not explicitly distinguish itself from sibling tools like edit_sprite or generate_sprite.

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 implied by the operation: use this when you have an image and a mask selecting the region to regenerate. However, the description does not explicitly say when to use this versus edit_sprite or generate_sprite, nor does it state when not to use it.

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