Skip to content

Roleplay Tools Overview ​

Elthoria exposes 300+ deterministic tabletop roleplay tools, read-only MCP resources, and structured GM prompts over MCP (stdio or sse). Whether you play through the Kompile GM harness (elthoria) or connect Claude Desktop, Codex, Antigravity (agy), or a custom client to elthoria server, the same authoritative RPG state engine backs every call.


Core GM discipline ​

Every roleplay tool follows four invariants baked into AGENTS.md and elthoria_gm_manual:

  1. Query before narrating. Never invent HP, AC, initiative order, active buffs, faction standings, or map positions — inspect the server first.
  2. Roll before resolving. Use roll_dice, roll_skill_check, roll_saving_throw, roll_attack, roll_weapon_attack, or fate_check before narrating uncertain outcomes.
  3. Mutations are real; failures are not canon. Treat a proposed action as not done until its mutation tool returns success. Confirm high-impact or ambiguous edits, and refresh get_play_dashboard rather than reconstructing state in prose.
  4. Act as the external GM. When your harness is already the Game Master, call domain tools directly and write the narration yourself. Reserve elthoria_chat only for explicit nested-GM delegation (and note that product-mcp.json excludes elthoria_chat in the default Kompile GM harness).

Discovering tools at runtime (without schema bloat) ​

Because Elthoria serves 300+ tools across 18+ categories, the Kompile elthoria-gm role exposes only mcp_tool_search and mcp_tool_call in the model's initial tool list. Inside any MCP client, you can also call Elthoria's own discovery tools directly:

ToolPurpose
list_tool_categoriesList all tool categories (character, bonus, combat, combat_action, equipment, spell, npc, dice, grid, table, search, map, buff, game_mechanics, discovery, rag, content, additional)
list_tools_by_categoryList every tool registered in a given category
search_toolsKeyword-search tool names and descriptions across the live catalog
get_tool_detailsReturn the exact JSON input schema for one tool before calling it
list_all_toolsEnumerate all registered tools

TIP

Namespacing note: Clients prefix MCP tool names differently. In Kompile, Elthoria tools are addressed as mcp__elthoria__<tool_name> (for example, mcp__elthoria__roll_dice). Always invoke the exact identifier returned by mcp_tool_search or tools/list.


Roleplay tool domains ​

GuideWhat it coversKey tools
Characters, Rules, Buffs & SpellsCharacter creation, multiclassing, feats, HP, typed bonus breakdowns, buffs/conditions, equipment/gold, spells/preparation, NPCs & statblockscreate_character, get_combat_sheet, apply_buff_to_character, equip_weapon, prepare_spell, parse_npc_statblock
Combat, Initiative & StealthCampaign-scoped initiative tracker, DF-QuAD tactical advisor, adjudicated combat commands, spell/resource expenditure, AI stealthed NPCsstart_combat, roll_initiative, next_turn, recommend_combat_action, execute_combat_command, initialize_stealth_npc
Dice, Oracle & Random TablesDice notation, DC-aware checks, live-chaos fate_check, event meaning & improvisation generators, custom weighted tablesroll_dice, roll_skill_check, fate_check, roll_random_event, create_table, roll_custom_table, bulk_roll_tables
Living World, Scenes & LoreWeekly world simulation, factions/rumors/conflicts, counterfactual story choices, NPC world agents, SceneExperience media cues, journals, keyword Lorebooksget_world_sim_overview, advance_world_week, get_world_story_candidates, preview_world_story_choice, create_journal_entry, create_lorebook
Maps, Hexes & Tactical BoardsProcedural hex worlds, revision-checked hex & tactical boards, ASCII/ANTLR map DSLs, encounter grid linking, same-runtime UI attachmentgenerate_world_map, get_hex_board, apply_hex_board_command, generate_grid, apply_tactical_board_command, get_play_connection
Content Workbench & KnowledgeFolder-local Kompile knowledge workspace, guarded PDF intake/parsing/validation/publication, Pathfinder 1e roll-table catalog import, offline qualificationelthoria_knowledge_workspace, elthoria_content_sources, elthoria_document_inspect, elthoria_content_publish, elthoria_content_playable_import

Session context, pinned dashboard & undo safety net ​

Campaign & session context (SessionContextMcpTools) ​

ToolPurpose
set_session_contextPin the active campaign_id (and optionally character, map, or grid) for a per-client stdio server
get_session_contextInspect the currently pinned campaign/character/map/grid context
clear_session_contextClear the pinned default context

WARNING

Shared SSE transports: On a shared SSE server, always pass explicit campaign_id, saved_grid_id, and map_id arguments rather than relying on process-wide session context pinning.

Pinned play dashboard (PlayDashboardMcpTools) ​

ToolPurpose
get_play_dashboardRead a compact, player-safe summary of the active campaign (party, active combat, world week, active scene/board). Read-only.

In the Kompile harness, .mcp.json registers mcp__elthoria__get_play_dashboard under kompile.dashboard with an explicit refreshAfterTools list so the TUI dashboard refreshes automatically after combat, character, map, board, world-sim, or undo mutations.

Action log & reversible undo (UndoMcpTools) ​

Every undoable gameplay mutation is logged by McpActionLogService and can be audited or rolled back cleanly:

ToolPurpose
undo_last_actionRoll back the most recent undoable MCP mutation
undo_actionRoll back a specific action by its action ID
get_undoable_actionsList recent actions eligible for undo
get_action_logInspect recent tool calls filtered by category, tool name, or status
get_action_detailsRetrieve full arguments and result payload for one logged action
get_action_statsView call counts grouped by category and status

(Note: execute_combat_command uses its own service-level idempotency receipts rather than the legacy undo logger.)

Built on the upstream Kompile harness. Released under the MIT License.