Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
rulesetNoWhich ruleset to use. Omit to use the configured default ("2024"); pass "2014" to override. '2014' uses the classic XP multiplier; '2024' does not.2024
monsterCrsYesArray 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.
partyLevelsYesArray 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.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.2.0

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure, and it succeeds: it specifies ruleset-specific mechanics, the extra difficulty tiers, whether the XP multiplier applies, and what the tool returns (total XP, adjusted XP for 2014, difficulty label, threshold breakdown). An agent can predict behavior without needing an output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, and every subsequent clause adds a distinct piece of information: ruleset support, mode differences, tier additions, and return values. The labeled-mode structure makes the relatively long description easy to scan without wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter tool with rich schema coverage and no output schema, the description is complete: it states the required inputs, the two operational modes, the output contents, and the mode-specific differences. No essential behavior needed to invoke or interpret the result is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline applies and the schema already documents partyLevels, monsterCrs, and ruleset. The description adds useful mode context, such as why ruleset matters and that adjusted XP is 2014-only, but it does not materially expand the meaning of the individual parameters beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb ('Evaluate'), a concrete resource (D&D 5e encounter), and the core inputs (party composition and monster CRs). It is unmistakably clear about what the tool does, but it does not explicitly distinguish itself from sibling tools like cr_calculate or cr_scale, so it misses the top score for active sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description makes the intended use obvious: answer encounter-difficulty questions given a party and monster CR list. It also provides a clear decision rule for choosing between the 2014 and 2024 rulesets. It does not name alternatives or state when not to use this tool, so it falls short of explicit routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jazzsequence/5eMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server