Skip to main content
Glama

prepare_map_with_packs

Creates and opens a copy of the current open Dungeondraft map with specified asset packs included so you can build using those pack assets.

Instructions

Copy the open map into one that INCLUDES asset packs, and open it.

Dungeondraft scopes packs per map and a map's set is fixed when it is
created, so a map made without packs can never reach them — list_assets on
it returns only the ~1800 core assets. This writes a copy whose header
includes the packs and opens that copy, which is how a map gets a library.

Do this BEFORE building. The copy carries the open map across untouched, so
running it on an empty scratch map costs nothing, while running it on a
finished map means continuing in the copy from here on.

filename: bare name for the new map, in the configured save directory.
packs: pack ids to include, from list_asset_packs or search_pack_contents.
  REQUIRED — choose them. The copy keeps the open map's packs and adds
  these. Including every installed pack is costly on a large library, and
  one pack can dominate the catalogue. Pick by what the brief needs;
  adding more later means preparing another copy.

The open map is saved first so the copy is current. Assets from a pack the
map does not include are not merely hidden: placing one produces an object
Dungeondraft erases on load, so include the packs rather than reaching past
them. A pack's first load can crash Dungeondraft until its thumbnails are
made: pass any `thumbnail_warning` on.

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": "prepare_map_with_packs"
  }
}

Input Schema

NameRequiredDescriptionDefault
packsNo
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 discloses that the open map is saved first, that the copy preserves the source map, that the copy keeps existing packs and adds the given ones, that placing assets from an unincluded pack yields objects Dungeondraft erases on load, and that a pack's first load can crash Dungeondraft until thumbnails exist. That is unusually rich mutation-risk context.

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?

Front-loads the action and the reason, then param notes, then hazards; nearly every sentence adds decision-relevant information. Slightly overlong and the mid-description line breaks make the parameter block harder to scan than a labeled list would.

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 two-parameter mutation with no output schema, the description covers the write target, save ordering, pack-set semantics, failure modes, and where to get ids. Nothing an agent needs before calling 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 coverage is 0%, so the description must compensate and largely does: filename is a bare name resolved in the configured save directory, and packs are pack ids sourced from sibling tools with an explicit instruction to choose them by the brief. Deduction for calling packs 'REQUIRED' while the schema marks only filename required and gives packs a null default — an agent reading the schema may skip it.

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 precise verb and outcome: copies the open map into one whose header includes asset packs, then opens the copy. It also explains why the operation must exist (a map's pack set is fixed at creation), which distinguishes it from open_map and list_asset_packs without ambiguity.

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 ordering guidance ('Do this BEFORE building'), a cost argument for running it on a scratch map, and a consequence for running late ('continuing in the copy from here on'). It also names where pack ids come from (list_asset_packs or search_pack_contents) and warns that adding more later means another copy.

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