Skip to main content
Glama

set_map_size

Resizes the current battle map in tiles using Dungeondraft's Change Map Size, resizing terrain, cave, and floor rasters so saved maps reopen correctly.

Instructions

Resize the current map, in TILES (a tile is 256 woxels).

Uses Dungeondraft's own Change Map Size resize, so every level's terrain,
cave and floor-tile rasters are resized and the saved map reopens. Each
side must be 8 to 128 tiles, or 1 to 200 with the Unofficial Patch loaded
(get_status.unofficial_patch). The top-left origin is kept: the map grows or
shrinks on the right and bottom, nothing placed is moved, and shrinking
does not delete what ends up outside. Set the size before laying out.
To trim from the top or left too, use crop_map.

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": {
      "width": "<width>",
      "height": "<height>"
    },
    "name": "set_map_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthYes
heightYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A4.9/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 names the underlying Dungeondraft operation, discloses that all levels' terrain/cave/floor-tile rasters are resized and the map reopens, spells out per-side limits and the patch-dependent variant (8-128 vs 1-200), and states the anchor semantics (top-left origin kept, nothing moved, shrinking does not delete content outside). This is unusually complete disclosure for a mutation tool.

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?

Front-loads the action and unit in the first sentence, then constraints, then geometry semantics, then the workflow hint and the cross-reference. Every sentence adds information that changes how the tool is called; nothing is restated from the schema or padding.

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-integer mutation tool with no output schema, the description covers units, bounds, patch-conditional limits, spatial anchor, destructiveness, required ordering, and the sibling alternative. The only unaddressed item is what the call reports back, which is minor given no output schema exists to describe.

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 supply meaning, and it does supply units (tiles) and valid ranges for both sides, plus the patch-conditional range that the schema's flat minimum 1 / maximum 200 does not capture. It falls short of naming width and height directly and does not flag that the schema permits values (1-7) that will fail without the Unofficial Patch, leaving a small reconciliation burden on the agent.

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 ("Resize the current map") and immediately pins the unit ("in TILES (a tile is 256 woxels)"), which is the main ambiguity for a resize operation. An agent can distinguish it from crop_map, which is also named.

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 an explicit ordering rule ("Set the size before laying out") and routes to the alternative for the case this tool does not cover ("To trim from the top or left too, use crop_map"). Both the when-to-use and the when-to-use-something-else conditions are stated.

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