encounter_xp_budget
Calculate per-character XP budgets for encounter building using SRD 5.2.1 rules. Provide party level and difficulty to get budget with citation, and optional party size for total.
Instructions
XP budget per character for encounter building (SRD 5.2.1 p.202): given party level (1-20) and difficulty (low/moderate/high), returns the per-character XP budget with citation. Pass party_size to also get the total. Combine with creature.stats to check whether an encounter is within budget.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | ||
| difficulty | Yes | low, moderate, or high (case-insensitive) | |
| party_size | No | ||
| request_id | No | ||
| table_policy | No | ||
| asserted_facts | No | ||
| policy_context | No | ||
| table_decision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | Yes | ||
| data | No | ||
| facts | Yes | ||
| adapter | Yes | ||
| verdict | Yes | ||
| rule_ids | Yes | ||
| citations | Yes | ||
| exit_code | Yes | ||
| assumptions | Yes | ||
| explanation | Yes | ||
| rule_result | Yes | ||
| checked_scope | Yes | ||
| coverage_level | Yes | ||
| state_mutation | Yes | ||
| table_decision | Yes | ||
| unchecked_scope | Yes |