Skip to main content
Glama

overlay

Composite one image onto another at a specified offset and opacity, writing the result to a new file without altering the sources. Ideal for adding logos or badges.

Instructions

Composite one image on top of another and write the result to a NEW file (sources unchanged). The 'overlay' image is placed at offset (x, y) on the 'base' image; its alpha channel is respected, and an 'opacity' of 0-1 lets you fade it in. Use it for logos, badges, or layering. Returns the output path and the offset used.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoHorizontal offset of the overlay's top-left corner on the base (default 0).
yNoVertical offset of the overlay's top-left corner on the base (default 0).
outYesOutput image path. A new file is created; both sources are left untouched.
baseYesPath to the bottom (base) image.
opacityNoOpacity of the overlay, 0-1 (default 1.0 = fully opaque).
overlayYesPath to the top image to composite, whose alpha channel is honored.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations provided, the description carries full responsibility for behavioral disclosure. It transparently states that output is written to a new file, sources remain untouched, alpha channel is respected, opacity is configurable, and it returns the output path and offset. This is comprehensive for a compositing tool.

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?

Two sentences, front-loaded with the core purpose and a key safety caveat (new file). Every clause adds value; no redundancy or filler.

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

Completeness5/5

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

Even without an output schema, the description explicitly states the return value (output path and offset) and covers the essential behavior needed to invoke the tool correctly. For a straightforward image overlay with this parameter set, 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 the schema already documents all parameters (base, overlay, out, x, y, opacity). The description adds contextual flavor (offset placement, alpha mix) but does not materially exceed schema details; baseline 3 is appropriate.

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 ('composite'), the resources (images), and the result (new file, sources unchanged). Clearly distinguishes from siblings like watermark and resize by detailing the overlay placement and opacity behavior.

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?

Provides explicit use cases ('logos, badges, or layering') that help an agent decide when to apply this tool. Does not explicitly exclude alternative tools (e.g., watermark), but the context is strong enough to guide selection.

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