Skip to main content
Glama

spawn_populated_location

Generate complete RPG locations with rooms, inhabitants, and loot in a single API call to streamline world-building and reduce token usage.

Instructions

Create a complete location with POI, optional room network, and inhabitants in one call.

REPLACES: create_poi + create_network + N×create_room + N×spawn_character + N×(create_item + place_item) TOKEN SAVINGS: ~90%

Example - Goblin Cave: { "worldId": "world-123", "name": "Shadowfang Cave", "category": "dungeon", "icon": "cave", "position": "50,30", "description": "A dark cave system rumored to house goblin raiders", "level": 3, "tags": ["goblin", "cave", "treasure"], "rooms": [ { "name": "Cave Entrance", "description": "A shadowy opening in the hillside...", "biome": "cavern" }, { "name": "Guard Chamber", "description": "A small alcove where guards keep watch...", "biome": "cavern", "exits": ["north"] } ], "inhabitants": [ { "template": "goblin:warrior", "room": 0, "count": 2 }, { "template": "goblin:archer", "room": 1 }, { "template": "hobgoblin:captain", "name": "Skullcrusher", "room": 1 } ], "loot": [ { "preset": "longsword", "room": 1 }, { "preset": "potion_healing", "room": 0, "count": 2 } ] }

Example - Village Inn: { "worldId": "world-123", "name": "The Prancing Pony", "category": "commercial", "icon": "inn", "position": "100,75", "population": 15, "discoveryState": "discovered", "rooms": [ { "name": "Common Room", "description": "A warm tavern with crackling fireplace...", "biome": "urban" }, { "name": "Kitchen", "description": "The busy kitchen smells of fresh bread...", "biome": "urban", "exits": ["west"] } ], "inhabitants": [ { "name": "Barliman Butterbur", "race": "Human", "characterType": "npc", "room": 0 }, { "template": "bandit", "name": "Suspicious Stranger", "characterType": "neutral", "room": 0 } ] }

Categories: settlement, fortification, dungeon, landmark, religious, commercial, natural, hidden Icons: city, town, village, castle, fort, tower, dungeon, cave, ruins, temple, shrine, inn, market, mine, farm, camp Biomes: forest, mountain, urban, dungeon, coastal, cavern, divine, arcane

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
worldIdYesWorld ID to create the location in
nameYesLocation name
categoryYesPOI category
iconYesMap icon
positionYesWorld map position
descriptionNoBrief description for map tooltip
populationNoPopulation for settlements
levelNoSuggested character level for dungeons
tagsNoSearchable tags
discoveryStateNounknown
discoveryDCNoDC to discover if hidden
roomsNoRooms to create (first room is entrance)
inhabitantsNoNPCs/creatures to populate the location
lootNoItems to place in the location
sessionIdNo
Behavior3/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It describes the tool as a creation operation ('Create a complete location'), implying it's a write/mutation tool, which is useful context. However, it lacks details on permissions, error handling, or response format. The examples provide some behavioral insight (e.g., structure of input), but key operational traits like idempotency or side effects are not addressed.

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?

The description is well-structured and front-loaded: the first sentence states the purpose clearly, followed by replacement context, token savings, and examples. The examples are detailed but necessary for illustrating complex usage. The lists of categories, icons, and biomes are concise references. While lengthy due to examples, every section adds value, and there is no redundant or verbose text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (15 parameters, no output schema, no annotations), the description does a strong job. It explains the tool's purpose, usage context, and provides rich examples that clarify parameter semantics. However, it lacks details on behavioral aspects like error conditions or return values, and some parameters (e.g., 'sessionId') are not mentioned in the description, leaving minor gaps in completeness.

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 description coverage is high (87%), so the baseline is 3. The description adds value by providing two detailed examples (Goblin Cave and Village Inn) that illustrate practical usage of parameters like 'rooms', 'inhabitants', and 'loot', including nested structures. It also lists allowed values for 'categories', 'icons', and 'biomes' beyond the schema enums, enhancing understanding. However, it doesn't fully explain all 15 parameters, keeping it from a perfect score.

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?

The description clearly states the tool's purpose: 'Create a complete location with POI, optional room network, and inhabitants in one call.' It specifies the verb ('create'), resource ('complete location'), and components (POI, room network, inhabitants), distinguishing it from simpler creation tools. The explicit mention of replacing multiple sibling tools (e.g., create_poi, create_network) further clarifies its unique, comprehensive function.

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?

The description provides explicit guidance on when to use this tool versus alternatives: it states it 'REPLACES: create_poi + create_network + N×create_room + N×spawn_character + N×(create_item + place_item)' and highlights 'TOKEN SAVINGS: ~90%'. This directly informs the agent to use this tool for batch creation of populated locations instead of individual component tools, with clear efficiency benefits.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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