Skip to main content
Glama

simulate_damage

Calculate average damage per round (DPR) for D&D attack routines, including hit probability, critical hits, and turns to kill.

Instructions

Calculate average damage per round (DPR) for an attack routine. Computes hit probability, critical hit chance, average damage, and turns to kill.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
attack_bonusYesAttack roll modifier (e.g. +7)
damage_diceYesDamage dice notation (e.g. "2d6+5", "1d8+3")
num_attacksNoNumber of attacks per round
target_acYesTarget Armor Class
crit_rangeNoMinimum roll for critical hit (default 20)
target_hpNoTarget hit points (for turns-to-kill calculation)
advantageNoWhether attacks have advantage
disadvantageNoWhether attacks have disadvantage
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that the tool computes hit probability, crit chance, average damage, and turns to kill, but does not explain behavioral details such as how critical hits affect damage calculation (e.g., dice doubling) or how advantage/disadvantage influences probabilities.

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 concise at two sentences with no redundancy. Every sentence adds value: first states high-level purpose, second lists computed outputs.

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?

Given 8 parameters and no output schema, the description lists several computed outputs but does not clarify the return format, assumptions (e.g., damage on hit, critical damage calculation), or how edge cases like disadvantage are handled. It is adequate but leaves gaps.

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?

The input schema provides 100% coverage with descriptions for all 8 parameters. The tool description adds no additional parameter-level information beyond the general outputs, so it meets the baseline but does not exceed it.

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 calculates average damage per round for an attack routine, listing specific outputs like hit probability, critical hit chance, average damage, and turns to kill. This distinguishes it from sibling tools that analyze broader aspects like loadouts or encounters.

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

Usage Guidelines3/5

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

The description implies the tool is used for computing DPR of attack routines, but provides no explicit guidance on when to use this tool vs. alternatives like analyze_loadout or compare_monsters. No exclusions or prerequisites are mentioned.

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/gregario/dnd-oracle'

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