Skip to main content
Glama

open_map

Opens a .dungeondraft_map file and replaces the current map, waiting for completion by default; refuses unsaved bridge edits unless discard is requested.

Instructions

Open a .dungeondraft_map file, replacing whatever is currently open.

Refused while the open map has edits made through the bridge since its
last save; the error says so. Then save_map first, or, only after the user
agrees to lose those edits, pass discard_unsaved=true. Edits made by hand
in Dungeondraft are not counted, so ask before opening over their work.

Loading is asynchronous AND it restarts the bridge: mods load after the map
does, so the bridge briefly stops answering and can come back on another
port. By default this waits until the map Dungeondraft reports open is the
one you asked for, and returns its size and level.

`opened: false` means that had not happened in time. The load may still be
running: read `note` and poll get_status rather than opening again.

wait=False returns as soon as the command is accepted.

path: absolute path to a .dungeondraft_map file.

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>"
    },
    "name": "open_map"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
waitNo
discard_unsavedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A5/5.0
Behavior5/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 and does so: it discloses the refusal condition, the asynchronous load, the bridge restart and possible port change, and the difference between wait=True and wait=False. It also explains what opened:false means and what the successful return contains (size and level), which is exactly the behavioral context an agent needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The destructive scope and refusal condition are front-loaded, followed by the async/bridge-restart caveat and then return-value semantics, then a compact parameter line. Every sentence carries distinct operational information; there is no restatement of the name or filler.

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?

Although there is no output schema, the description explains the meaningful return signals (opened, note, size, level) and how to react to them. For a destructive, asynchronous, connection-disrupting operation, all the information an agent needs to call safely is present.

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

Parameters5/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 defines all three parameters: path as an absolute path to a .dungeondraft_map, wait's default blocking behavior versus wait=False returning on acceptance, and discard_unsaved tied to the user-consent condition. Nothing in the schema is left semantically ambiguous.

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 specific verb and resource: 'Open a .dungeondraft_map file, replacing whatever is currently open,' which also implies the destructive scope of the operation. It names save_map as the alternative path, so an agent can distinguish this from the sibling without reading any 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?

Explicitly covers when the call is refused (unsaved bridge edits), what to do instead (save_map first), and the only condition under which discard_unsaved=true is acceptable (after user agrees to lose edits). It also warns that hand edits in Dungeondraft are not counted, so the agent must ask before overwriting them, and it prescribes polling get_status rather than re-opening when opened is false.

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