Skip to main content
Glama

adventure_generate_layout

Read-onlyIdempotent

Generates procedural area layouts with terrain zones, paths, and transition points, returning validated data ready to apply to Neverwinter Nights modules.

Instructions

Generate a procedural area layout with terrain zones, crosser paths, and transition points. Returns data ready to pass to adventure_apply_layout. Encodes all layout rules: perimeter encapsulation, room separation, adjacency validation, walkable ratio. Styles: dungeon (varied rooms + corridors, some L-shapes), cave (smaller rooms, more corridors, maze-like), dwelling (quadrant rooms, fewer corridors, building interior), forest (clearings separated by trees, winding roads), rural (farmland/village, spine roads), city (urban cobblestone, grid roads), plains (open terrain, sparse clearings), desert (arid, cliff borders), castle (fortified exterior, castle walls), tundra (frozen, snow/camp clearings). Returns suggestedFeatures array with pre-validated feature placements.

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

Input Schema

NameRequiredDescriptionDefault
styleYesJSON style object: {type: 'dungeon'|'cave'|'dwelling'|'forest'|'rural'|'city'|'plains'|'desert'|'castle'|'tundra', rooms?: number, clearings?: number, corridorStyle?: 'straight'|'zigzag', roadStyle?: 'spine'|'grid'|'winding', preferredFeatures?: string[]} — preferredFeatures is an array of tileset group names (from get_tileset_details) to prioritize when placing features. Preferred groups are tried first before falling back to random selection.
widthYesArea width in tiles (8-32)
heightYesArea height in tiles (8-32)
tilesetYesTileset resref (e.g., 'tdc01' for crypt, 'ttf01' for forest)
transitionCountNoNumber of transition points to generate (default 1)
transitionDirectionsNoJSON array of directions: ['south', 'north', 'east', 'west']

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, and the description goes well beyond them by disclosing the encoded invariants (perimeter encapsulation, room separation, adjacency validation, walkable ratio) and the pre-validated suggestedFeatures return. Minor tension: 'falling back to random selection' hints at non-determinism while idempotentHint=true is declared, but this is not a flat contradiction.

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 purpose and downstream handoff before the style catalogue. The style enumeration is a long run-on sentence that could be bulleted, but every clause carries design information rather than 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?

With six parameters, no output schema, and a mutation-adjacent generation step, the description compensates well: it describes the return shape (layout data plus suggestedFeatures array) and the validation guarantees an agent needs before chaining into adventure_apply_layout.

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 100%, so the baseline is 3, but the description adds real meaning by explaining what each style type yields structurally (dungeon = varied rooms plus corridors with L-shapes, cave = maze-like, city = grid roads) and what pre-validated features mean. Width/height/transition parameters are left to the 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 ('Generate a procedural area layout with terrain zones, crosser paths, and transition points') and immediately distinguishes itself from the downstream sibling by naming adventure_apply_layout as the consumer. An agent can tell what it produces 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly frames the usage as a two-step pipeline ('Returns data ready to pass to adventure_apply_layout'), which tells the agent this is the generation half of an apply flow. It stops short of stating when to prefer raw create_area or when not to use procedural generation at all.

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