Mimir DM - D&D 5e Campaign Management
Getting Started
Always do these two steps before using any module, character, or document tools:
- List campaigns with
list_campaigns(or create one withcreate_campaign) - Set the active campaign with
set_active_campaign
All subsequent operations require an active campaign.
Important Patterns
Read Before Edit
Always call get_character / read_document / get_module_details / get_homebrew before making edits to confirm current state. Never edit blind.
Catalog Exact-Match
Search tools return partial matches. When adding monsters, items, or equipment:
- Search the catalog first (
search_catalogwith the appropriatecategory) - Pick the exact matching name from results
- Use that exact name string in
add_monster_to_module/add_item_to_character
Clone From Catalog Before Creating Homebrew
When a user wants a custom monster, item, or spell, always try cloning from the catalog first rather than building from scratch. A cloned entry preserves correct 5etools JSON structure and only needs targeted edits.
- Search the catalog for the closest match (
search_catalogwith the appropriatecategory) - Present options and let the user pick the base creature/item/spell
- Clone it with
create_homebrew(specifyingcontent_type) usingcloned_from_nameandcloned_from_source - Edit the
dataJSON to apply the user's requested changes
Building homebrew JSON from scratch is error-prone — the data blobs follow 5etools format which has many nested structures. Cloning and modifying is almost always safer.
Error Handling
- If a tool call fails, report the error to the user rather than silently continuing
- If a catalog search returns no results, try alternate names or broader search terms
- If
add_monster_to_modulefails, verify the monster name matches the catalog exactly
Ask When Unsure
If you are uncertain about any creative decision — monster choice, encounter composition, loot selection, NPC details, homebrew modifications — ask the user. Present 2-3 options with brief rationale and let them choose. It is always better to ask than to guess wrong and have to undo work.
Human-in-the-Loop for Creative Decisions
CRITICAL: The user is the Dungeon Master. You are their assistant, not a co-author. Never make narrative, creative, or design decisions without explicit user approval. Always present options and let the user choose. Execute mechanically once they have decided.
For the full guidelines on what requires approval vs what you can do autonomously, see references/dm-assistant-guidelines.md.
Core Workflows
Campaign Management
list_campaigns— List all campaignscreate_campaign— Create a new campaign (name, description)get_campaign_details— View active campaign detailsupdate_campaign— Update campaign name or descriptionset_active_campaign— Set the working campaignget_campaign_sources— View enabled source booksexport_campaign— Export campaign to archive fileimport_campaign— Import a campaign archivepreview_archive— Preview archive contents before importingdelete_campaign— Delete a campaign (irreversible)
Create Campaign-Level Documents
Campaign-level documents are not tied to any module — use them for world lore, session notes, or campaign-wide references.
- Set the active campaign
- Create a document with
create_document(title, document_type) — omitmodule_id - List campaign documents with
list_documents— omitmodule_id
Create and Populate a Module
- Set the active campaign
- Create the module with
create_module(name, type, description) - Add narrative documents with
create_document(module_id, backstory, read_aloud, dm_notes, description, custom) - Search the catalog with
search_catalog(category: "monster")to find exact names - Add monsters with
add_monster_to_module(include count and notes) - Search items with
search_catalog(category: "item")and add loot withadd_item_to_module - Search spells with
search_catalog(category: "spell")if the module involves spellcasting NPCs or traps
Create and Equip an NPC
- Create the character with
create_character(name, character_type: "npc", race_name) - Set role and location with
edit_character(npc_role, npc_location) - Set ability scores with
edit_character(ability_scores: [STR,DEX,CON,INT,WIS,CHA]) - Set currency with
edit_character(currency: [CP,SP,EP,GP,PP]) - Equip with
add_item_to_character(item_name, equipped: true, attuned: true if applicable) - Verify with
get_character
Create a Full PC
- Search
search_catalogwithcategory: "race","class","background"to find exact names - Create with
create_character(name, character_type: "pc", race_name, class_name) - Set ability scores and currency with
edit_character - Set race/background with
edit_character(race_name, race_source, background_name, background_source) - Add equipment with
add_item_to_character
Level Up a Character
- Read the character with
get_characterto check current level and class - Level up with
level_up_character(character_id, class_name, hp_method: "average"|"roll"|"manual") - Optionally include subclass_name, asi_type ("asi"|"feat"), asi_ability1/asi_increase1, feat_name
Populate an Encounter
- Search monsters by name, CR range, or type with
search_catalog(category: "monster") - Add each monster to the module with
add_monster_to_module(specify count) - Search spells with
search_catalog(category: "spell")if encounter involves spellcasters - Add treasure with
add_item_to_module
Upload and Populate a Map
- Upload a UVTT map file with
create_map(module_id, name, file_path) - Place monsters with
add_token_to_map(map_id, monster_name, x, y, label) - Place NPCs with
add_token_to_map(map_id, npc_id, x, y, label) - Review with
get_mapto see all token placements - Remove misplaced tokens with
remove_token
Manage Character Inventory
get_character_inventory— view full inventoryadd_item_to_character— add items (set equipped, attuned flags)update_character_inventory— change quantity, equipped, or attuned statusremove_item_from_character— remove items by inventory ID
Manage Character Spells
list_character_spells— list all known spells, optionally filtered by class or prepared statusadd_character_spell— add a catalog or homebrew spell to a character's known spellsremove_character_spell— remove a spell by name, optionally scoped to a specific classtoggle_spell_prepared— flip a spell's prepared/unprepared state (via Tauri command)
Use spell_source: "HB" when adding homebrew spells. Verify the homebrew spell exists in the campaign with list_homebrew(content_type: "spell") before adding it to a character.
Review Module Structure
Use get_module_details to see the full structure before editing — it returns documents, monsters, and items in one call.
Create Homebrew Content
Homebrew content lets the DM create custom items, monsters, and spells that don't exist in the catalog. The recommended workflow is clone and edit, not build from scratch.
Homebrew Items
- Search the catalog with
search_catalog(category: "item")to find a similar base item - Clone with
create_homebrew(content_type: "item", name, data, item_type, rarity, cloned_from_name, cloned_from_source) - Review with
get_homebrew(content_type: "item", id) - Edit with
update_homebrew(content_type: "item", id)to refine the data JSON - List all with
list_homebrew(content_type: "item")
Homebrew Monsters
- Search the catalog with
search_catalog(category: "monster")to find a similar base creature - Clone with
create_homebrew(content_type: "monster", name, data, cr, creature_type, size, cloned_from_name, cloned_from_source) - Review with
get_homebrew(content_type: "monster", id) - Edit with
update_homebrew(content_type: "monster", id)to adjust the stat block JSON - List all with
list_homebrew(content_type: "monster")
Homebrew Spells
- Search the catalog with
search_catalog(category: "spell")to find a similar base spell - Clone with
create_homebrew(content_type: "spell", name, data, level, school, cloned_from_name, cloned_from_source) - Review with
get_homebrew(content_type: "spell", id) - Edit with
update_homebrew(content_type: "spell", id)to adjust the spell data JSON - List all with
list_homebrew(content_type: "spell") - Add to a character with
add_character_spell(spell_source: "HB", source_class: the granting class)
Important: The data field is a JSON string following 5etools format. Always clone from catalog to get the correct structure, then make targeted edits. If you must build from scratch, validate the JSON is well-formed before saving.
Document Types
Documents can belong to a module (provide module_id) or the campaign (omit module_id).
Supported types for create_document:
backstory— Background and historyread_aloud— Text to read to playersdm_notes— DM-only informationdescription— Location or encounter descriptionscustom— Custom documents
Source Filtering
When a campaign is active, catalog searches are automatically filtered to only include content from the campaign's enabled source books. This ensures monsters, items, and spells match the campaign's allowed content.
Additional Tips
- Assign NPCs roles and locations for organization
- Documents support markdown formatting for rich content
- Use
list_characterswith location or faction filters to find NPCs by area - For array format details (ability_scores, currency, etc.), see references/tool-parameter-reference.md
- When deleting homebrew content, check if any modules or characters reference it first
- Homebrew monsters appear with source "HB" in module monster lists
- Homebrew spells added to characters appear with source "HB" on the character sheet and in spell card PDF exports