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:
- Query before narrating. Never invent HP, AC, initiative order, active buffs, faction standings, or map positions — inspect the server first.
- Roll before resolving. Use
roll_dice,roll_skill_check,roll_saving_throw,roll_attack,roll_weapon_attack, orfate_checkbefore narrating uncertain outcomes. - 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_dashboardrather than reconstructing state in prose. - Act as the external GM. When your harness is already the Game Master, call domain tools directly and write the narration yourself. Reserve
elthoria_chatonly for explicit nested-GM delegation (and note thatproduct-mcp.jsonexcludeselthoria_chatin 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:
| Tool | Purpose |
|---|---|
list_tool_categories | List 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_category | List every tool registered in a given category |
search_tools | Keyword-search tool names and descriptions across the live catalog |
get_tool_details | Return the exact JSON input schema for one tool before calling it |
list_all_tools | Enumerate 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
| Guide | What it covers | Key tools |
|---|---|---|
| Characters, Rules, Buffs & Spells | Character creation, multiclassing, feats, HP, typed bonus breakdowns, buffs/conditions, equipment/gold, spells/preparation, NPCs & statblocks | create_character, get_combat_sheet, apply_buff_to_character, equip_weapon, prepare_spell, parse_npc_statblock |
| Combat, Initiative & Stealth | Campaign-scoped initiative tracker, DF-QuAD tactical advisor, adjudicated combat commands, spell/resource expenditure, AI stealthed NPCs | start_combat, roll_initiative, next_turn, recommend_combat_action, execute_combat_command, initialize_stealth_npc |
| Dice, Oracle & Random Tables | Dice notation, DC-aware checks, live-chaos fate_check, event meaning & improvisation generators, custom weighted tables | roll_dice, roll_skill_check, fate_check, roll_random_event, create_table, roll_custom_table, bulk_roll_tables |
| Living World, Scenes & Lore | Weekly world simulation, factions/rumors/conflicts, counterfactual story choices, NPC world agents, SceneExperience media cues, journals, keyword Lorebooks | get_world_sim_overview, advance_world_week, get_world_story_candidates, preview_world_story_choice, create_journal_entry, create_lorebook |
| Maps, Hexes & Tactical Boards | Procedural hex worlds, revision-checked hex & tactical boards, ASCII/ANTLR map DSLs, encounter grid linking, same-runtime UI attachment | generate_world_map, get_hex_board, apply_hex_board_command, generate_grid, apply_tactical_board_command, get_play_connection |
| Content Workbench & Knowledge | Folder-local Kompile knowledge workspace, guarded PDF intake/parsing/validation/publication, Pathfinder 1e roll-table catalog import, offline qualification | elthoria_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)
| Tool | Purpose |
|---|---|
set_session_context | Pin the active campaign_id (and optionally character, map, or grid) for a per-client stdio server |
get_session_context | Inspect the currently pinned campaign/character/map/grid context |
clear_session_context | Clear 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)
| Tool | Purpose |
|---|---|
get_play_dashboard | Read 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:
| Tool | Purpose |
|---|---|
undo_last_action | Roll back the most recent undoable MCP mutation |
undo_action | Roll back a specific action by its action ID |
get_undoable_actions | List recent actions eligible for undo |
get_action_log | Inspect recent tool calls filtered by category, tool name, or status |
get_action_details | Retrieve full arguments and result payload for one logged action |
get_action_stats | View call counts grouped by category and status |
(Note: execute_combat_command uses its own service-level idempotency receipts rather than the legacy undo logger.)