Skip to main content
Glama

gimp_add_layer_from_file

Insert an image file as a new GIMP layer, centered by default, with optional x/y placement and width/height scaling.

Instructions

Inserta otra imagen (logo, foto...) como capa nueva. Sin x/y queda centrada. width/height opcionales para escalarla (si das uno, mantiene proporción).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNo
yNo
nameNo
pathYes
widthNo
heightNo
image_idNo
positionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/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 safety is largely covered. The description adds genuine behavioral facts beyond that: positioning defaults to centered when x/y are omitted, and scaling preserves aspect ratio when only one of width/height is given. It does not disclose layer ordering, failure modes, or where the new layer lands relative to existing ones.

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?

Two compact sentences that lead with the core action and then layer in the positioning and scaling caveats. No filler or repetition, though the parenthesis-heavy style is slightly dense.

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

Completeness2/5

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

For an 8-parameter mutation tool with no output schema and no enum guidance, the description is thin. It addresses positioning and scaling but omits image_id (target image selection), name, and position semantics, leaving an agent unable to confidently populate most of the schema.

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 8 parameters. The description clarifies only x/y (centering behavior) and width/height (optional scaling with proportion retention); image_id, name, and position are left entirely undocumented, and path is only implicitly obvious. Partial compensation that leaves half the parameters opaque.

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 and resource: inserts another image file (logo, photo) as a new layer. This is clearly distinguishable in intent from gimp_new_layer (empty layer) or gimp_duplicate_layer, though it never names those siblings. The purpose is unambiguous from the text alone.

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?

Offers implied usage context via the default behavior ('sin x/y queda centrada') and the optional scaling mode, which help an agent anticipate outcomes. However, it gives no explicit 'use this when / instead of X' guidance and never routes the agent against gimp_new_layer or gimp_open_image.

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