Skip to main content
Glama

generate_dungeon

Generates a complete dungeon or cave layout in one call using Dungeondraft's procedural generator, replacing an empty map's layout so you can build rooms and corridors before placing details by hand.

Instructions

Run Dungeondraft's own procedural generator: a whole layout in one call.

design: "Dungeon" for rooms and corridors, "Cave" for organic caverns.
  Omit to use whatever the app's Map Wizard currently has selected.
floor / wall: texture indices from generator_options. They must be passed
  HERE rather than set beforehand — enabling the generator resets the
  wizard's pickers, so a choice made earlier is discarded. Set the numeric
  dials with generator_options first; those do survive.

The response reports the design actually generated, read back from the
wizard — not the one requested.

This REPLACES the level's layout, so run it FIRST, on an empty map, after
set_map_size and before placing anything by hand. Re-generating works, but
Dungeondraft's own UI does not offer it: treat it as a do-over on an
undecorated map, not a way to iterate on work.

It gives structure, not a finished map. Character comes from scatter,
shadow paths along the walls, floor shapes and terrain.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_dungeon"
  }
}

Input Schema

NameRequiredDescriptionDefault
wallNo
floorNo
designNo

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 supplied, the description carries the full burden and does so: it declares the operation replaces the level's layout, that enabling the generator resets the wizard's pickers so pre-set floor/wall choices are discarded, and that dials set beforehand survive. It also discloses that the response reports the design actually generated rather than the one requested, which is a non-obvious read-back behavior.

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-loaded with the purpose, then ordered by what the agent needs next (parameters, then behavioral warnings, then workflow placement). Nearly every sentence carries distinct information; the only drag is the indented multi-line parameter block, which is slightly denser than it needs to be.

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 destructive, prerequisite-heavy generation tool with no output schema and no annotations, the description covers the destructive scope, the ordering constraints, the parameter sourcing quirk, the return-value caveat, and what the tool does not produce ('structure, not a finished map'). Nothing an agent needs to call 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 coverage is 0%, so the description must compensate, and it largely does: it enumerates the meaningful 'design' values ('Dungeon' vs 'Cave'), explains what omitting it does, and identifies floor/wall as texture indices sourced from generator_options that must be passed here rather than set beforehand. It stops short of giving index ranges or the full set of valid design strings, but the semantics are far richer than the bare schema.

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 ('Run Dungeondraft's own procedural generator: a whole layout in one call') and makes clear this is the app's built-in generator rather than the manual building tools in the sibling list. An agent can tell this apart from build_room, dig_cave or draw_wall without opening 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?

Gives explicit ordering ('run it FIRST, on an empty map, after set_map_size and before placing anything by hand') and routes the numeric dials to the sibling tool generator_options. It also names the case where re-generation is acceptable (a do-over on an undecorated map) versus where it is not (iterating on finished work).

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