Skip to main content
Glama

ddb_rate_encounter

Read-only

Rates D&D encounter difficulty for a party using 2014 or 2024 rules, looking up monster CRs automatically or accepting homebrew CR values.

Instructions

Rate the difficulty of a D&D encounter. Defaults to 2024 XDMG rules (Low/Moderate/High, no multiplier). Set rules_edition to '2014' for the classic DMG XP threshold method (Easy/Medium/Hard/Deadly with encounter multiplier). Monsters are looked up in the compendium automatically — supply 'cr' directly for homebrew. A name that is not found or has no known CR is listed with a note to supply 'cr'; one that matches several different creatures (e.g. 'Red Dragon') lists the candidates with their CRs and asks for the full name. Nothing is guessed. Returns 2024 content by default; set rules_edition to '2014' for 2014 rules. The 'Rules:' line or [tag] in the output names the ruleset.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "party": "<party>",
      "monsters": "<monsters>"
    },
    "name": "ddb_rate_encounter"
  }
}

Input Schema

NameRequiredDescriptionDefault
partyYesParty composition. Use multiple entries for mixed-level parties — e.g. [{count:3,level:5},{count:1,level:3}]
monstersYesMonsters in the encounter. Each entry needs at least a name or cr.
rules_editionNoRules edition. '2024' (default) uses XDMG XP budgets with Low/Moderate/High difficulty — no encounter multiplier. '2014' uses DMG XP thresholds with Easy/Medium/Hard/Deadly and a monster count multiplier, and looks up the Legacy (2014) stat block's CR when a monster exists in both editions.2024

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.0
    • changedInput schema / properties / rules_edition / description
      Previous value: -"Rules edition. '2024' (default) uses XDMG XP budgets with Low/Moderate/High difficulty — no encounter multiplier. '2014' uses DMG XP thresholds with Easy/Medium/Hard/Deadly and a monster count multiplier."New value: +"Rules edition. '2024' (default) uses XDMG XP budgets with Low/Moderate/High difficulty — no encounter multiplier. '2014' uses DMG XP thresholds with Easy/Medium/Hard/Deadly and a monster count multiplier, and looks up the Legacy (2014) stat block's CR when a monster exists in both editions."
  2. First observedv2.10.2

TDQS

A4.1/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint, the description discloses real behavior: automatic compendium lookup with Open5e fallback, and explicit failure modes where an unknown name or ambiguous name is reported back with a note or candidate list rather than guessed. It also says how the chosen ruleset is surfaced in output via the 'Rules:' line or [tag].

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

Conciseness3/5

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

It is front-loaded with the default behavior and mode switch, which is good, but the closing pair of sentences restates the 2024/2014 default already established in the opening line, adding length without new information.

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

Completeness4/5

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

With no output schema, the description carries the burden of explaining returns and does so at a summary level — difficulty labels per edition and the 'Rules:' indicator — while covering lookup failure and ambiguity paths. It never specifies whether XP totals or per-monster contributions appear in the response, which is the main remaining gap.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema: 'cr' as the homebrew escape hatch, ambiguity handling for 'name', and a concrete example ('Red Dragon') of how resolution failures surface. The edition semantics largely restate the already-detailed schema entry for rules_edition.

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 first sentence gives a specific verb and resource: rating the difficulty of a D&D encounter, with the default ruleset named. It does not differentiate itself from a similarly-named sibling such as ddb_encounter_cr, leaving the agent to infer the boundary.

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?

It clearly states when to use each mode: default 2024 XDMG, set rules_edition to '2014' for the classic threshold method, and supply 'cr' directly for homebrew rather than relying on the compendium. It gives no guidance on when to prefer this tool over sibling lookup tools, so it stops short of a 5.

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