encounter_build
Determine D&D 5e encounter difficulty using party levels and monster CRs. Supports 2014 and 2024 rulesets, returning XP totals, difficulty labels, and threshold breakdowns.
Instructions
Evaluate the difficulty of a D&D 5e encounter given the party composition and monster CRs. Supports both 2014 (classic) and 2024 (one D&D) rulesets. 2014 mode: uses four difficulty tiers (easy/medium/hard/deadly) with a monster count XP multiplier. 2024 mode: uses three difficulty tiers (low/moderate/high) with no multiplier. Both modes add a 'trivial' tier below easy/low and an 'absurd' tier above deadly/high. Returns total XP, adjusted XP (2014 only), difficulty label, and full threshold breakdown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruleset | No | Which ruleset to use. Omit to use the configured default ("2024"); pass "2014" to override. '2014' uses the classic XP multiplier; '2024' does not. | 2024 |
| monsterCrs | Yes | Array of monster CR strings (one entry per monster). Example: ["5", "3", "1/2"]. Valid CR values: 0, 1/8, 1/4, 1/2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30. | |
| partyLevels | Yes | Array of character levels in the party (one entry per character). Example: [5, 5, 4, 4] for a four-person party at levels 5/5/4/4. |