Characters, Rules, Buffs & Spells
Elthoria's rules layer (elthoria-rules-engine, elthoria-character-tools, and host MCP providers) handles Pathfinder-style character progression, typed bonus stacking, conditions/buffs, equipment/inventory, spell preparation, and NPC statblock parsing deterministically.
Character lifecycle (CharacterMcpTools)
| Tool | Purpose |
|---|---|
create_character | Create a new player character with race, class, and base ability scores |
get_character | Read full character sheet including stats, equipment, classes, feats, and abilities |
get_character_summary | Compact summary (name, race, classes, level) for quick GM reference |
list_characters | List all characters in a campaign |
update_character | Update basic character properties such as name or alignment |
edit_character | Comprehensive single-call edit (name, alignment, ability scores, HP, or race) |
delete_character | Remove a character from the campaign |
add_class_level | Add one or more class levels (supports multiclassing and automatic class-feature/BAB/save progression) |
update_ability_scores | Update one or more base ability scores without overwriting unspecified scores |
add_feat / remove_feat | Manage character feats (backed by FeatPrerequisiteValidator) |
update_hit_points | Set current HP directly, apply damage, or apply healing |
Bonus stacking & combat sheet (BonusCalculationMcpTools)
Instead of asking the LLM to add up enhancement, morale, dodge, natural armor, size, and racial bonuses by hand, query the rules engine for exact breakdowns:
| Tool | Purpose |
|---|---|
get_combat_sheet | Complete calculated combat sheet: AC (normal/touch/flat-footed), HP, attacks, saves, CMB/CMD, speed, and DR |
get_all_ability_scores | All six ability scores with modifiers and source-by-source breakdowns |
calculate_ability_score | Single ability score breakdown (base, racial, items, active buffs) |
calculate_armor_class | Full AC breakdown (base 10, armor, shield, DEX, size, deflection, natural, dodge, etc.) |
calculate_attack_bonus | Full attack bonus breakdown (BAB, ability modifier, size, enhancement, buffs) |
calculate_saving_throw | Fortitude, Reflex, or Will save breakdown (base, ability, resistance, morale, etc.) |
calculate_skill_bonus | Skill total breakdown (ranks, ability modifier, class skill bonus, racial, items, buffs) |
calculate_initiative | Initiative modifier breakdown (DEX, feats, traits, buffs) |
calculate_hit_points | Max HP calculation breakdown (hit dice, CON modifier, feats, favored class) |
Under the hood, elthoria-rules-engine also computes encumbrance capacity/speed (EncumbranceService), size modifiers (SizeModifierService), arcane spell failure (ArcaneSpellFailureService), grapple state transitions (GrappleStateMachine), death/dying (DeathDyingService), metamagic (MetamagicEngine), and XP leveling (XPLevelingService).
Buffs, debuffs & conditions (BuffMcpTools)
Buffs are reusable templates with typed bonus effects (for example, +4 enhancement to STR or -2 penalty to attack rolls for Shaken). Toggling a buff immediately recalculates every dependent bonus on get_combat_sheet and roll tools.
| Tool | Purpose |
|---|---|
create_buff / update_buff / delete_buff | Manage reusable buff/debuff/condition templates |
get_buff / list_buffs | Inspect available templates by ID or name |
add_effect_to_buff / remove_effect_from_buff / list_buff_bonuses | Configure individual typed bonus effects on a buff |
find_buffs_by_buff_type / set_buff_type | Filter or categorize by BUFF, DEBUFF, CONDITION, CURSE, DISEASE, POISON, etc. |
search_buffs_by_ability | Find buffs affecting a specific stat or ability |
apply_buff_to_character / remove_buff_from_character | Attach or detach a buff on a character (starts enabled) |
toggle_character_buff | Enable or disable an attached buff (for example, Power Attack, Rage, or situational conditions) |
get_character_buffs / get_active_character_buffs | List all attached buffs or only currently active buffs |
(Combat-scoped aliases apply_buff, remove_buff, toggle_buff, and list_active_buffs are also exposed in CombatMcpTools and trigger dashboard refreshes automatically.)
Equipment, inventory & gold (EquipmentMcpTools)
| Group | Tools |
|---|---|
| Equipping | equip_weapon, unequip_weapon, equip_armor, unequip_armor, equip_accessory, get_equipped_items |
| Inventory & currency | get_inventory, add_item_to_inventory, remove_item_from_inventory, update_gold |
| Item catalog | list_weapons, list_armor, list_accessories, list_all_items, get_item |
| Item authoring | create_weapon, create_armor, create_accessory, edit_item, delete_item |
| Magic item bonuses | add_bonus_to_item, remove_bonus_from_item, list_item_bonuses |
Spells & spell preparation (SpellMcpTools)
| Tool | Purpose |
|---|---|
search_spells / get_spell / edit_spell / list_spell_bonuses | Look up, inspect, customize, or check bonuses granted by spells |
get_character_spells / learn_spell / forget_spell | Manage a character's known spells or spellbook |
prepare_spell / unprepare_spell / get_prepared_spells | Manage prepared spell lists for prepared casters |
get_spell_slots | Inspect available spell slots by level (pairs with cast_spell, use_spell_slot, get_spell_slots_remaining, and reset_spell_slots in combat) |
NPCs & statblock parsing (NpcMcpTools)
| Tool | Purpose |
|---|---|
create_npc | Create an NPC with an optional structured statblock |
parse_npc_statblock | Parse raw Pathfinder / D&D-format text statblocks into persisted NPCs via NPCParser |
get_npc / list_npcs | Inspect an NPC or list NPCs filtered by Challenge Rating (CR) |
create_encounter / add_npc_to_encounter / get_encounter | Build and inspect reusable encounter rosters |
Read-only MCP resources & helper prompts
Clients that support MCP resources and prompts can also pull live character and rules snapshots directly:
- Resources:
campaign://characters,campaign://characters/{id},campaign://characters/{id}/stats,rules://classes,rules://races,rules://feats,rules://spells,rules://items,rules://buffs - Prompts:
character_creation_wizard,optimize_character,generate_backstory,level_up_advice,generate_npc
See Walkthrough 1: Launching Your First Campaign to put these tools together end to end.