Skip to content

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) ​

ToolPurpose
create_characterCreate a new player character with race, class, and base ability scores
get_characterRead full character sheet including stats, equipment, classes, feats, and abilities
get_character_summaryCompact summary (name, race, classes, level) for quick GM reference
list_charactersList all characters in a campaign
update_characterUpdate basic character properties such as name or alignment
edit_characterComprehensive single-call edit (name, alignment, ability scores, HP, or race)
delete_characterRemove a character from the campaign
add_class_levelAdd one or more class levels (supports multiclassing and automatic class-feature/BAB/save progression)
update_ability_scoresUpdate one or more base ability scores without overwriting unspecified scores
add_feat / remove_featManage character feats (backed by FeatPrerequisiteValidator)
update_hit_pointsSet 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:

ToolPurpose
get_combat_sheetComplete calculated combat sheet: AC (normal/touch/flat-footed), HP, attacks, saves, CMB/CMD, speed, and DR
get_all_ability_scoresAll six ability scores with modifiers and source-by-source breakdowns
calculate_ability_scoreSingle ability score breakdown (base, racial, items, active buffs)
calculate_armor_classFull AC breakdown (base 10, armor, shield, DEX, size, deflection, natural, dodge, etc.)
calculate_attack_bonusFull attack bonus breakdown (BAB, ability modifier, size, enhancement, buffs)
calculate_saving_throwFortitude, Reflex, or Will save breakdown (base, ability, resistance, morale, etc.)
calculate_skill_bonusSkill total breakdown (ranks, ability modifier, class skill bonus, racial, items, buffs)
calculate_initiativeInitiative modifier breakdown (DEX, feats, traits, buffs)
calculate_hit_pointsMax 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.

ToolPurpose
create_buff / update_buff / delete_buffManage reusable buff/debuff/condition templates
get_buff / list_buffsInspect available templates by ID or name
add_effect_to_buff / remove_effect_from_buff / list_buff_bonusesConfigure individual typed bonus effects on a buff
find_buffs_by_buff_type / set_buff_typeFilter or categorize by BUFF, DEBUFF, CONDITION, CURSE, DISEASE, POISON, etc.
search_buffs_by_abilityFind buffs affecting a specific stat or ability
apply_buff_to_character / remove_buff_from_characterAttach or detach a buff on a character (starts enabled)
toggle_character_buffEnable or disable an attached buff (for example, Power Attack, Rage, or situational conditions)
get_character_buffs / get_active_character_buffsList 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) ​

GroupTools
Equippingequip_weapon, unequip_weapon, equip_armor, unequip_armor, equip_accessory, get_equipped_items
Inventory & currencyget_inventory, add_item_to_inventory, remove_item_from_inventory, update_gold
Item cataloglist_weapons, list_armor, list_accessories, list_all_items, get_item
Item authoringcreate_weapon, create_armor, create_accessory, edit_item, delete_item
Magic item bonusesadd_bonus_to_item, remove_bonus_from_item, list_item_bonuses

Spells & spell preparation (SpellMcpTools) ​

ToolPurpose
search_spells / get_spell / edit_spell / list_spell_bonusesLook up, inspect, customize, or check bonuses granted by spells
get_character_spells / learn_spell / forget_spellManage a character's known spells or spellbook
prepare_spell / unprepare_spell / get_prepared_spellsManage prepared spell lists for prepared casters
get_spell_slotsInspect 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) ​

ToolPurpose
create_npcCreate an NPC with an optional structured statblock
parse_npc_statblockParse raw Pathfinder / D&D-format text statblocks into persisted NPCs via NPCParser
get_npc / list_npcsInspect an NPC or list NPCs filtered by Challenge Rating (CR)
create_encounter / add_npc_to_encounter / get_encounterBuild 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.

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