Skip to main content
Glama

ddb_roll_treasure

Read-only

Generate treasure rewards from 2024 D&D treasure tables using a challenge rating or monster list. Choose individual or hoard rolls, with magic items for hoards when character level is provided.

Instructions

Generate a treasure reward using the 2024 XDMG treasure tables (default). Provide either a CR directly or a list of monster names — CR is resolved automatically via fuzzy name matching. treasure_type 'hoard' makes one roll using the highest CR and includes magic items (requires character_level); 'individual' rolls once per monster and sums the results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
crNoChallenge rating (0–30). Use instead of monsters for a direct CR lookup.
monstersNoMonsters from the encounter. Highest CR determines the treasure tier for hoards.
treasure_typeNoindividual = one roll per monster. hoard = one roll using the highest CR.hoard
character_levelNoCharacter level (1–20). Required for hoard treasure to determine which magic item table to use. If omitted, magic items are skipped.
Behavior4/5

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

Annotations already mark this as read-only and open-world, so the bar for additional context is lower. The description adds valuable behavioral details: fuzzy name matching for monsters, CR resolution, and how treasure_type affects the roll logic. No contradictions with annotations.

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

Conciseness4/5

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

The description is concise, front-loaded with the core purpose, and avoids redundancy. It packs key behavioral distinctions into two sentences without unnecessary filler.

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

Completeness3/5

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

The tool lacks an output schema, and the description does not mention the return format or structure of the generated treasure. For a generator, knowing what the result looks like would be helpful. However, the tool's complexity is well covered, so this is a moderate 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%, but the description enhances parameter understanding by explaining the interplay between cr/monsters and treasure_type, the fuzzy matching behavior, and the character_level requirement for hoards. This goes beyond schema definitions.

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 clearly states the tool generates treasure rewards using the 2024 XDMG tables, with specific behaviors for hoard vs individual. It is distinct from sibling tools, which are mostly search/get operations, by identifying itself as a generator.

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 provides clear guidance on when to use the tool and how to switch modes (CR vs monsters, hoard vs individual). It does not explicitly mention alternatives or exclusions, but the usage context is well-defined.

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