Skip to main content
Glama

generate_terrain_pattern

Generate procedural terrain layouts for RPG encounters using predefined patterns like mazes, canyons, and arenas in a single call.

Instructions

Generate terrain using a pattern template. ONE CALL generates entire layout.

PATTERNS:

  • maze: Full procedural maze (corridors & walls) - USE THIS FOR MAZES

  • maze_rooms: Maze with open chambers/rooms connected by corridors

  • river_valley: Cliff walls on east/west with river in center

  • canyon: Parallel walls east-west with pass between

  • arena: Circular wall enclosing fighting area

  • mountain_pass: Narrowing corridor toward center

MAZE EXAMPLE (100x100 in ONE call): { "encounterId": "enc-1", "pattern": "maze", "origin": { "x": 0, "y": 0 }, "width": 100, "height": 100, "seed": "maze-runner-001" }

MAZE WITH ROOMS: { "pattern": "maze_rooms", "width": 100, "height": 100, "roomCount": 8 }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
encounterIdYesThe ID of the encounter
patternYesTerrain pattern to generate
originNoTop-left corner of the pattern
widthNoWidth of the pattern area
heightNoHeight of the pattern area
seedNoSeed for reproducible generation
corridorWidthNoWidth of corridors (maze patterns only)
roomCountNoNumber of rooms (maze_rooms pattern only)
sessionIdNo

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mnehmos/rpg-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server