Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_FOLDER_TEMPNoTemp directory for extracted modules%TEMP%/nwn-mcp
NWN_FOLDER_DATAYesNWN game install directory (base game 2DA/TLK)
NWN_FOLDER_USERYesNWN user documents directory (HAKs, overrides, modules)
NIM_FOLDER_NWTOOLSYesPath to neverwinter.nim binaries
MCP_FOLDER_USERREPORTSNoDirectory for exported reports

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
load_moduleA

Load and index a NWN module (.mod) file. Must be called before using other tools. If just a filename is given (e.g., 'mymod.mod'), it is resolved from the NWN_FOLDER_USER/modules/ directory.

list_resourcesB

List all resources in the loaded module, optionally filtered by type (extension).

get_resourceA

Get the full content of a resource. Returns GFF as JSON, .nss as source text, .ncs as disassembly.

get_module_infoB

Get parsed module.ifo data: areas, entry point, scripts, time settings.

search_by_tagB

Search for resources by Tag value across the entire module.

search_by_fieldB

Search for GFF fields by name and optionally by value across all parsed resources.

list_areasA

List all areas in the module with dimensions and object counts.

get_area_detailsA

Get full details for an area including properties, lighting, weather, and music.

get_area_creaturesB

List all creatures placed in a specific area with their stats.

get_area_placeablesC

List all placeables in a specific area.

get_area_itemsB

List all items placed on the ground in a specific area.

get_area_doorsA

List all doors in a specific area with lock status and destinations.

set_area_scriptsA

Set event scripts on an area's ARE file. Pass empty string to clear a script.

set_module_scriptsB

Set event scripts on the module IFO. Pass empty string to clear a script.

list_creaturesA

List all creatures in the module, optionally filtered by area.

get_creature_detailsB

Get full details for a specific creature including stats, feats, equipment, and scripts.

set_creature_equipmentA

Set equipment on a placed creature in an area. Merges with existing equipment by default; use replace=true to clear first.

clear_creature_equipmentA

Remove all or specific equipment from a placed creature.

list_itemsB

List all item blueprints in the module.

get_item_detailsB

Get full details for an item blueprint including properties.

add_item_propertyB

Add a property to an item blueprint's PropertiesList. Use integer row from itempropdef.2da, or text name to search.

remove_item_propertyB

Remove a property from an item blueprint by index in PropertiesList.

clear_item_propertiesA

Remove all properties from an item blueprint.

get_dialog_treeB

Get the raw dialog structure for a conversation file.

flatten_dialogB

Get a human-readable conversation flow showing NPC/PC lines with branching.

trace_dialog_pathB

Follow a specific conversation path by choosing PC reply indices at each step.

find_dialog_scriptsB

Find all scripts referenced in dialog files (actions and conditions).

read_script_sourceB

Read the NWScript (.nss) source code for a script.

disassemble_scriptB

Disassemble compiled NWScript (.ncs) bytecode.

compile_scriptC

Compile a NWScript (.nss) source file to bytecode (.ncs).

find_variable_usageA

Find all scripts that use Get/SetLocal* functions with a given variable name.

search_scriptsA

Search across all NWScript (.nss) source files for a text pattern.

list_script_referencesA

Show where scripts are referenced from in GFF files (event handlers, dialog actions, etc.).

write_scriptA

Write NWScript (.nss) source code to the module and optionally compile it. Creates or overwrites the .nss file. Use for creating new scripts or editing existing ones.

get_dependency_graphA

Show resource dependency graph. Resources depend on other resources via script references, conversation assignments, etc.

find_orphansB

Find resources that are never referenced by any other resource.

get_balance_reportC

Analyze creature difficulty and item values per area.

get_module_summaryC

Get a high-level summary of the entire module.

validate_moduleA

Check for broken references across the module (missing scripts, dialogs, items, door links).

suggest_encounterB

Advisory tool: suggest creature compositions for a given party level and size. Read-only, does not modify anything.

check_area_connectivityA

Check if all areas are reachable from the module start area via door/trigger transitions. Returns reachable/unreachable areas and the transition graph.

verify_quest_completabilityA

Verify that all quests in the journal are mechanically completable. Traces from quest-start dialog through condition/action scripts to the journal end entry. Checks area reachability for quest objectives.

resolve_2daA

Look up a value in a 2DA table by row index. Returns the full row or a specific column value. Uses base game + HAK 2DA tables loaded via resman.

search_2daB

Search a 2DA table for rows where a column matches a value (case-insensitive substring match).

list_2da_tablesA

List all 2DA tables available in the loaded module.

resolve_tlkA

Look up text for a TLK string reference. Checks custom TLK first (strrefs >= 0x01000000), then base game dialog.tlk.

list_tlk_entriesB

Browse TLK entries with optional substring filter and range. Returns up to 50 entries at a time.

search_tlkB

Search TLK entries by text content (case-insensitive substring match).

find_strref_usageB

Find which GFF resources reference a given TLK string reference number.

get_area_triggersA

List all triggers in a specific area with type, scripts, and linked destination.

get_area_encountersB

List all encounters in a specific area with creature list and spawn conditions.

list_storesA

List all stores in the module with name and markup.

get_store_detailsB

Get full details for a store including inventory and pricing.

get_area_waypointsB

List all waypoints in a specific area with tag, position, and map note.

get_area_soundsB

List all sound objects in a specific area.

get_faction_detailsA

List factions and reputation relationships from the module's .fac file.

get_faction_creaturesB

List all creatures that belong to a specific faction.

resolve_blueprintA

Resolve any resource from the full resman stack (base game BIFs + HAKs + override + development) and return its GFF as JSON. Use this to look up base game or HAK blueprints by resref (e.g., 'nw_cloth001.uti', 'nw_dog.utc', 'plc_chest1.utp').

resman_searchA

Search for resources across the full resman stack (base game + HAKs + override + development) by name pattern or binary content.

resman_statsA

Show the full resman stack for the loaded module: container sizes, file counts, shadowing info, and load order. Useful for diagnosing why a resource isn't loading as expected.

tlkify_moduleA

Extract all hardcoded strings from the loaded module into a TLK file for localization review. Creates a new module with strref pointers and a companion TLK containing all extracted text.

list_blueprintsA

Search for blueprints across the full resman stack (base game + HAKs + module) by resref, tag, or display name (including TLK-resolved names). Returns type-specific summaries.

list_tilesetsA

List all tilesets available via resman. Returns resref, display name, interior/exterior, terrain types, crosser types, group count, and tile count for each.

get_tileset_detailsA

Get full details for a tileset: terrain types, crosser types, primary rules, all groups with dimensions and tile IDs, and a summary of the tile catalog organized by terrain patterns. Use detail='summary' (default) for a compact ~2KB overview including valid terrain adjacencies. Use detail='full' for the complete tile catalog (~60-100KB).

visualize_areaA

Get the spatial awareness payload for an area: tile grid with terrain, materials, crossers, walkability, and features; walkable zones with connectivity and area transition analysis; all placed objects (creatures, placeables, doors, waypoints, triggers, encounters, sounds, stores) with world positions and full properties. Use this for spatial reasoning, quest design, object placement, and area analysis. To generate a human-readable HTML visualization, use export_area_report.

export_area_reportA

Export a self-contained HTML visualization of a single area to disk. This is a human debugging tool that renders the same spatial data returned by visualize_area — tile walkmesh geometry, material colors, object markers, zone connectivity, creature/placeable cards, and area transitions. Returns the file path to open in a browser.

export_module_reportA

Export a self-contained HTML report of the entire module to disk. This is a human debugging tool that visualizes the spatial data for all areas: module summary, area transitions overview, and per-area interactive maps with walkmesh geometry, object markers, creature/placeable cards, and zone connectivity. Writes to module-report.html in the module temp dir. Returns the file path.

list_databasesA

List SQLite database files in the NWN user database folder, with size and table count. Database naming: mod_.sqlite3 for module-level, .sqlite3 for local characters, .sqlite3 for server characters, with _hench_tagid_NNN suffixes for henchmen.

query_databaseA

Run a SQL statement against a NWN SQLite database. Returns rows for SELECT/PRAGMA, or change summary for INSERT/UPDATE/DELETE. Database name can omit the .sqlite3 extension. The main table is 'db' with columns: varname (varchar), playerid (varchar), vartype (tinyint), payload (blob), compressed (bool). vartype codes (ASCII char): 70='F' float, 73='I' int, 74='J' json (SetCampaignJson), 76='L' location (areaId@x:y;z!facing), 79='O' object (StoreCampaignObject, GFF JSON), 83='S' string, 86='V' vector. F/I/L/V are uncompressed ASCII. J/O/S are CPDB/zstd compressed. Compressed rows use CPDB/zstd format — use read_database_object to deserialize blobs.

read_database_objectA

Deserialize a compressed GFF blob (creature, item, etc.) from a campaign database. Returns the object as parsed GFF JSON.

write_database_objectA

Serialize a GFF JSON document into a compressed blob and store it in a campaign database. Use for persisting creatures, items, or other objects.

modify_gff_fieldB

Modify a field in a GFF resource by dot-path. Example path: 'Creature List.0.ChallengeRating'

repack_moduleC

Repack the extracted module files into a .mod file.

create_item_blueprintA

Create a new item blueprint (.uti) in the module. Optionally clone from a base game or module item and apply overrides.

clone_resourceC

Clone an existing resource with a new resref.

export_resourceA

Extract a single resource file from the module to a specified path on disk.

create_areaB

Create a new area with default terrain tiles. Creates ARE, GIT, and GIC files, registers in module IFO.

delete_areaA

Remove an area from the module. Deletes ARE, GIT, and GIC files and unregisters from module IFO. Cannot delete the module entry area. This action is irreversible (no undo support).

paint_tilesA

Set exact tile IDs on specific positions. Direct placement, no solving.

paint_groupB

Place a multi-tile group (e.g. 'Temple_3x2', 'Lodge_2x2') at a grid position. Validates bounds and edge constraints.

set_area_propertiesC

Modify area properties: lighting, fog, music, ambient sounds, weather, skybox, day/night cycle. Music/ambient values are IDs from ambientmusic.2da / ambientsound.2da.

place_creatureB

Place a creature in an area from a UTC blueprint (module or base game). Validates position against walkmesh.

place_placeableA

Place a placeable in an area from a UTP blueprint. Appearance field comes from the blueprint (not defaulted to 0). By default strips event scripts and clears Useable/HasInventory — pass stripScripts='false' to keep blueprint defaults. Use add_items_to_container to enable inventory on placed containers. Enforces 1m collision check — placement fails if another object is within 1m.

place_waypointB

Place a waypoint in an area with optional map note.

place_doorC

Place a door in an area from a UTD blueprint (module or base game).

place_triggerB

Place a trigger in an area from a UTT blueprint (module or base game). The blueprint's geometry defines the trigger shape.

place_encounterA

Place an encounter in an area from a UTE blueprint (module or base game). The blueprint's geometry defines the spawn region.

place_soundB

Place a sound object in an area from a UTS blueprint (module or base game).

place_storeB

Place a store in an area from a UTM blueprint (module or base game). Stores are typically opened via scripts on NPCs/placeables.

add_items_to_containerA

Add items to a placeable container's inventory. Resolves item blueprints from module or base game.

remove_items_from_containerA

Remove items from a placeable container's inventory by resref (all matching) or by index.

link_doorsA

Link two doors for area transitions. Sets LinkedTo and LinkedToFlags on both doors bidirectionally.

create_area_transitionA

Create a one-way area transition: trigger in source area → waypoint in target area. For two-way transitions, call twice with swapped source/target. Writes and compiles a transition script, places the waypoint, places the trigger, and sets LinkedTo metadata for connectivity checks.

remove_objectA

Remove an object from an area's GIT by tag or list index.

move_objectA

Move an object to a new position in an area. Finds the object by tag (first match) or list index.

create_creature_blueprintA

Create a new creature blueprint (.utc). Optionally clone from a base game or module creature and apply overrides.

create_encounter_blueprintB

Create a new encounter blueprint (.ute) with a creature spawn list. Encounters spawn creatures when players enter their region, with configurable difficulty, respawning, and creature counts.

create_store_blueprintA

Create a new store blueprint (.utm) with custom pricing and inventory. Place with place_store and open via script (OpenStore).

create_trap_blueprintA

Create a new trap trigger blueprint (.utt) with trap detection/disarm DCs and a default square geometry. Optionally clone from a base game trigger and apply overrides.

get_journalA

Get all journal entries organized by quest/category.

create_journalA

Create a new .jrl file if the module has none. Required before adding quests to a module without an existing journal.

add_journal_questC

Add a new quest category to the journal.

add_journal_entryA

Add an entry to an existing quest. Entries represent journal updates the player sees as the quest progresses.

edit_journal_questA

Modify quest metadata (name, priority, comment, XP). Use add_journal_quest to create new quests.

edit_journal_entryB

Modify an existing journal entry's text or completion flag.

remove_journal_questB

Remove an entire quest category and all its entries from the journal.

remove_journal_entryB

Remove a specific entry from a quest by its ID.

create_dialogB

Create a new DLG conversation file from a simplified tree structure. Root nodes must be NPC lines (speaker: 'npc'). The tree alternates NPC→PC→NPC.

add_dialog_nodeA

Add a node to an existing dialog. If parentType is 'entry', adds a PC reply linked from that entry. If parentType is 'reply', adds an NPC entry linked from that reply. If parentType is 'dialog', adds a new NPC root entry to the StartingList (use for quest-stage branching with condition scripts). For 'dialog' mode, parentIndex controls insertion position: 0 inserts at the beginning (evaluated first), -1 or omit appends at the end (evaluated last).

edit_dialog_nodeA

Edit an existing dialog node's text, script, sound, or comment. Supports partial updates — only provided fields are changed. Note: conditions live on links (Active field), not nodes — use modify_gff_field for those.

create_moduleA

Create a new empty module (.mod) from the standard template. Includes default event scripts, factions, and palette files. Creates a small starter area for the entry point. Saves to NWN_FOLDER_USER/modules/ and loads the module.

create_factionB

Add a new faction to the module's .fac file with reputation entries for all existing factions.

set_faction_reputationA

Modify reputation between two factions. Creates a new entry if none exists.

rename_tagA

Rename a tag across all GFF resources and NWScript source files. Use dryRun=true to preview changes without modifying anything.

search_by_resrefB

Search for resources by resref pattern (case-insensitive substring match).

bulk_remove_objectsA

Remove objects matching a tag pattern from one or all areas. Use '*' as wildcard. Default: dry run (preview only).

bulk_move_objectsC

Move all objects with a given tag by an offset in an area.

fix_object_heightsA

Adjust Z height of all placed objects in an area to match the walkmesh ground plane. Fixes objects that were placed at Z=0 on elevated terrain.

undo_last_changeA

Revert the most recent GIT mutation (object placement, removal, linking, etc.).

undo_historyA

View the undo stack — recent GIT mutations that can be reverted.

adventure_create_transitionA

Create a BIDIRECTIONAL area transition for adventure modules in a single call. Places a useable blue shaft of light (plc_solblue) AND a landing waypoint at BOTH positions simultaneously, guaranteeing the light and waypoint in each area are at the exact same coordinates. The A→B light's OnUsed script plays VFX_FNF_SUMMON_MONSTER_2 and jumps the PC to the waypoint in B. The B→A light does the same back to A. Both scripts are compiled and dialog resrefs are returned. Tag constraints: max 11 chars (resrefs are 'a_at_' and 'a_rt_', both max 16 chars).

adventure_find_walkableA

Find guaranteed walkable coordinates in an area. Returns positions validated against the walkmesh with correct Z height. Use region to constrain the search to a part of the area.

adventure_generate_layoutA

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.

adventure_apply_layoutA

Apply a complete area layout atomically. Takes the full output of adventure_generate_layout (zones, crossers, suggestedFeatures) and paints everything in one call — terrain zones via the zone solver, crosser paths, and multi-tile feature groups.

adventure_list_featuresA

List feature groups from a tileset that are compatible with the layout solver. Automatically resolves the floor terrain from the style type (same logic as adventure_generate_layout), then filters out groups with doors, crosser edges, or mismatched terrain corners. Returns only groups safe to pass as preferredFeatures.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3/5.0

Scored across 125 tools

Disambiguation3/5

Most tools target distinct resources and actions, and descriptions are detailed enough to separate close pairs (visualize_area vs export_area_report, resolve_blueprint vs get_resource). However, there are multiple overlapping families: area listing tools (get_area_creatures, get_area_items, list_creatures), three different transition-creation tools (create_area_transition, adventure_create_transition, link_doors), and several object-removal tools (remove_object, bulk_remove_objects, remove_items_from_container) that an agent could easily confuse.

Naming Consistency3/5

The dominant pattern is snake_case verb_noun (place_creature, create_journal, list_areas), which is readable and mostly predictable. But the surface mixes many namespaces and verb families — adventure_*, resman_*, tlkify_, paint_, add_ vs create_ vs place_ vs set_ vs edit_ vs modify_ — so an agent cannot reliably infer a tool's category from its verb alone.

Tool Count1/5

125 tools is an extreme mismatch for a single MCP server, far beyond the typical 3-15 range, and many are near-duplicates in intent. The surface would almost certainly exceed practical context budgets and make tool selection unreliable.

Completeness4/5

Coverage is genuinely broad: module lifecycle, areas/tiles, creatures/items/placeables/doors/triggers/encounters/stores, dialogs, scripts, journals, factions, 2DA/TLK, resman, databases, and validation. Minor gaps exist (e.g., blueprint editing beyond items/creature equipment, no undo for area/structure changes), but the domain surface is close to complete.

Maintenance

ActivityInactive
ResponsivenessLimited data