Skip to main content
Glama

import_image

Place a local PNG onto a battle map as an object using its absolute path, position, and optional size or rotation. Embeds the image in the saved map so it reopens without the source file.

Instructions

Place a local PNG on the map as an object, as dragging it in would.

path: absolute path to a PNG the user named; never guess one.
x, y: centre in woxels; width, height: unrotated size in woxels.
Omit height to keep the aspect ratio. The size includes transparent
margins. rotation is degrees. Alpha is kept.
The saved map holds the image, so it reopens without the file. The
returned id works with move, modify, duplicate, delete, undo and
checkpoints. The image does not join the asset library, so list_assets
will not find it. Reimporting changed bytes makes a new texture.
PNG only: at most 32 MiB, 8192 px per side and 16 million pixels.
For a reusable tagged library entry, use create_image_pack instead.

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": {
      "path": "<path>",
      "x": "<x>",
      "y": "<y>",
      "width": "<width>"
    },
    "name": "import_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
pathYes
snapNo
layerNo
widthYes
heightNo
sortingNo
rotationNo
block_lightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so: the image is embedded in the saved map, the returned id works with move, modify, duplicate, delete, undo and checkpoints, the image is not in the asset library, and reimporting changed bytes creates a new texture. It also discloses hard limits (PNG only, 32 MiB, 8192 px per side, 16 million pixels) and that alpha and transparent margins are preserved.

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?

It is front-loaded with purpose before parameters, then behavior, limits and the alternative, and nearly every line carries information. A few lines are terse to the point of under-explaining ("Alpha is kept," and the bare list of limits), which is a small concision-over-clarity trade rather than waste.

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 a 10-parameter mutation tool with no annotations and no output schema, the description is unusually complete: it covers persistence, lifecycle via the returned id, library exclusion, format limits and the sibling alternative. The remaining gap is the four undocumented parameters, which an agent would have to guess at from names like snap, sorting and block_light.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it explains path, x, y, width, height and rotation with genuine meaning beyond the schema: centre in woxels, unrotated size in woxels, omitting height to keep aspect ratio, size includes transparent margins, rotation in degrees. However, four parameters (snap, layer, sorting, block_light) get no mention at all in either the schema or the description, leaving real gaps.

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?

The description opens with a specific verb and resource: "Place a local PNG on the map as an object," and adds the analogy "as dragging it in would," which pins down the semantics precisely. It is clearly distinguishable from siblings like create_image_pack and list_assets, whose roles it explicitly references.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It routes the agent explicitly: use create_image_pack for "a reusable tagged library entry," and warns that list_assets will not find the imported image. It also gives a hard usage constraint ("never guess" a path the user named), which is exactly the kind of when/when-not guidance that prevents misfires.

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

Deploy Server

Other Tools