Skip to main content
Glama

ddb_encounter_cr

Read-only

Calculate the CR to aim for from party composition and difficulty, with breakdowns for solo, duo, squad, and horde encounters. Works with 2014 and 2024 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.

Input Schema

TableJSON 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
Behavior4/5

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

The readOnlyHint annotation is true, and the description adds meaningful context: it discloses the default rules edition (2024 XDMG) and the four output encounter shapes. It doesn't contradict the annotations. Minor gap: the return format is not fully detailed, but the annotation and description cover the core behavioral expectations.

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 description is three concise sentences, front-loaded with the primary purpose. Each sentence adds information: what it does, the default/alternative rules, and the companion tool. No redundant or extraneous text.

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?

The tool has no output schema, but the description indicates the output breakdown (solo boss, duo, squad, horde) and notes the optional monster_count filter. The parameter schema is thorough. It could mention error conditions or exact return structure, but given the tool's simplicity and the sibling context, the description covers the necessary context.

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 description coverage is 100%, so the baseline is 3. The description adds cross-tool semantics by stating the party parameter is 'same format as ddb_rate_encounter,' improving consistency. It also reinforces the rules_edition default and behavior, which the schema already described. This small extra guidance bumps the score to 4.

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?

The description states a clear action: 'Given a party and a target difficulty, returns the CR to aim for.' It specifies the resource (CR for encounter) and the scope (broken down by encounter shape). It distinguishes from the sibling ddb_rate_encounter by stating 'No monster lookup required' and referencing the companion tool.

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

Usage Guidelines5/5

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

The description explicitly says 'Use with ddb_rate_encounter to verify a specific monster list,' which indicates when to use this tool versus an alternative. It also clarifies 'No monster lookup required,' guiding the user to avoid unnecessary monster searches. The default rules_edition and the option to switch to '2014' are clearly stated.

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

Install Server

Other Tools

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/iamjameslennon/ddb-mcp'

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