Skip to main content
Glama

ddb_encounter_cr

Read-only

Calculates target challenge ratings for a party and desired difficulty, broken down by encounter shape (solo boss, duo, squad, horde), with 2024 or 2014 rules.

Instructions

Given a party and a target difficulty, returns the CR to aim for — broken down by encounter shape (solo boss, duo, squad, horde). Defaults to 2024 XDMG rules; set rules_edition to '2014' for classic DMG. No monster lookup required. Use with ddb_rate_encounter to verify a specific monster list. 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>",
      "difficulty": "<difficulty>"
    },
    "name": "ddb_encounter_cr"
  }
}

Input Schema

NameRequiredDescriptionDefault
partyYesParty composition — same format as ddb_rate_encounter
difficultyYesTarget difficulty. Use 'low', 'moderate', 'high' for 2024 rules; 'easy', 'medium', 'hard', 'deadly' for 2014 rules.
monster_countNoIf provided, shows only this count instead of all four archetypes
rules_editionNoRules edition. '2024' (default) uses XDMG XP budgets, no multiplier. '2014' uses DMG XP thresholds with encounter multiplier.2024

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.10.2

TDQS

A4/5.0
Behavior4/5

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

Annotations only cover read-only and closed-world, so the description carries the rest and does so well: it discloses the output shape (CR per encounter archetype), that monster_count narrows to one archetype, that results are tagged with the ruleset via a 'Rules:' line or [tag], and that it is pure computation with no lookup. It does not mention rounding or edge cases (e.g., parties below/above thresholds).

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?

The opening sentence is well front-loaded, but the edition default is repeated three separate times ('Defaults to 2024 XDMG...', 'Returns 2024 content by default...', and the 'Rules:' line note), which pads the definition without adding 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 must explain the return value, and it does: a CR target broken out by four encounter shapes, optionally filtered to one count, tagged with the governing ruleset. Only minor gaps remain, such as how the four archetypes are keyed in the response.

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 schema already documents party, difficulty, monster_count, and rules_edition. The description's only genuine addition is naming the four archetypes that monster_count selects between, plus the edition default; the rest restates enum values the schema already carries.

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

Purpose5/5

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

States a specific computation: given party + target difficulty, return the CR to aim for, decomposed by encounter shape (solo boss, duo, squad, horde). It also distinguishes itself from ddb_rate_encounter by framing that sibling as the verifier of a concrete monster list.

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?

Gives a clear pairing rule — use this to get a CR target, then use ddb_rate_encounter to verify a specific monster list — and notes 'No monster lookup required', which tells the agent it need not fetch stat blocks first. It stops short of stating when this tool is the wrong choice or what to do if the party shape is unknown.

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