Skip to main content
Glama

create_image_pack

Create a reusable .dungeondraft_pack from named, tagged PNGs so custom objects become searchable library assets in Dungeondraft.

Instructions

Build a native, reusable .dungeondraft_pack of named, tagged PNG objects.

Writes only into Dungeondraft's configured asset folder (Settings > Assets),
never to an arbitrary path. filename: bare NEW .dungeondraft_pack name in
that folder; existing files are never overwritten. name: pack title related
to the map/project. Each image needs an absolute PNG path, a library name,
and descriptive tags (e.g. furniture, workshop, oak). PNG alpha is kept.
pack_id: optional eight alphanumeric characters; generated if omitted.

This creates a complete pack; it does not edit third-party archives. To
extend a collection, rebuild from the full image list under a new filename.
Prefer a new id during a live session; Dungeondraft caches loaded pack ids.

After writing, ask the user to restart Dungeondraft so it mounts the pack
(an Assets window rescan is untested), then prepare_map_with_packs with the
returned id. This tool does not refresh
the editor or change the open map's included packs. search_pack_contents can
already list the new archive from disk. Embedded import_image objects stay
map-local; these pack assets become searchable library entries once included.

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": {
      "filename": "<filename>",
      "name": "<name>",
      "images": "<images>"
    },
    "name": "create_image_pack"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
authorNo
imagesYes
pack_idNo
filenameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it states the write target is constrained to Dungeondraft's configured asset folder, that existing files are never overwritten, that PNG alpha is preserved, that pack_id is auto-generated if omitted, and that Dungeondraft caches pack ids (prefer a new id in a live session). It also discloses side-effect boundaries — no editor refresh, no change to the open map's included packs, and a required user restart.

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 core constraints are front-loaded and every paragraph carries operational information. It is on the long side, with some mid-sentence line breaks and a slightly redundant closing stretch about import_image objects versus library entries, but nothing is wasted enough to obscure the call.

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?

For a five-parameter creation tool with no output schema and no annotations, the description covers write location, overwrite policy, id generation, caching, required user action, follow-up tool, and what is returned (the id). Nothing an agent needs to invoke it correctly is missing.

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 four of five parameters well: filename (bare new name, no path, no overwrite), name (pack title), pack_id (eight alphanumerics, generated if omitted), and each image's absolute PNG path, library name, and tags with examples. The only undocumented parameter is 'author', which is a small but real gap given zero schema coverage.

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?

Opens with a specific verb and resource: 'Build a native, reusable .dungeondraft_pack of named, tagged PNG objects.' It also explicitly separates itself from import_image (map-local) and clarifies that it creates a complete pack rather than editing third-party archives, so an agent can distinguish it from siblings without opening the schema.

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?

Gives explicit when-not guidance ('does not edit third-party archives. To extend a collection, rebuild from the full image list under a new filename') and a concrete alternative workflow. It also names the follow-up tool (prepare_map_with_packs with the returned id) and notes that search_pack_contents can already see the archive, which is exactly the routing information an agent needs.

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