Skip to main content
Glama

Import image

import_image

Place an image from a file path, URL, or data URL onto a new or existing layer to use as a tracing reference or texture.

Instructions

Place an image (file path, http(s) URL or data URL) onto a new layer (or an existing one) — e.g. a reference to trace or a texture.

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": {
      "source": "<source>"
    },
    "name": "import_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
fitNoDefault contain when no size given
nameNoName for the new layer
layerNoExisting layer to draw into (default: create a new layer)
widthNo
heightNo
sourceYesPath, URL or data URL
opacityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It discloses one real side effect (a new layer is created by default when no existing layer is given) and the accepted source protocols, but says nothing about what happens on fetch failure, whether remote URLs require network/auth access, undo behavior, or what the call returns.

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?

A single front-loaded sentence with the action, accepted inputs, and target layer stated up front; no filler or repetition. The trailing example phrase is useful but slightly decorative.

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?

With nine parameters, no annotations, and no output schema, the definition should explain positioning/scaling interplay, opacity behavior, and the side effect of creating a layer. Only the source and layer-target aspects are covered, leaving the placement semantics and return value unaddressed.

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 only 44%, and the description largely restates what the schema already documents (source formats, layer default). It adds no meaning for the five undocumented positional/sizing parameters x, y, width, height, and opacity, which leaves an agent guessing how placement and scaling actually combine.

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 ("place an image ... onto a new layer or an existing one") and enumerates the accepted source forms, which makes it easy to distinguish from export_image and add_layer. It stops short of explicitly naming or excluding any sibling, so it lands at 4 rather than 5.

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?

The parenthetical examples ("a reference to trace or a texture") imply intended use cases, and "or an existing one" hints at when the layer parameter matters. There is no explicit when-not guidance, no mention of alternatives such as add_layer, and no prerequisites or preconditions stated.

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