roll_dnd_stats
Generate D&D 5e character ability scores using the standard 4d6 drop lowest method for tabletop gaming character creation.
Instructions
Roll a set of D&D 5e character stats using the standard 4d6 drop lowest method.
Returns: Six ability scores rolled using 4d6, dropping the lowest die
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp_dice_roller/server.py:127-154 (handler)The implementation of the `roll_dnd_stats` tool in the MCP server.
def roll_dnd_stats() -> dict: """ Roll a set of D&D 5e character stats using the standard 4d6 drop lowest method. Returns: Six ability scores rolled using 4d6, dropping the lowest die """ stats = [] for _ in range(6): result = roll_dice("4d6kh3") stats.append( { "rolls": result["rolls"], "kept": result["kept"], "total": result["total"], } ) totals = [s["total"] for s in stats] return { "method": "4d6 drop lowest", "stats": stats, "totals": totals, "sum": sum(totals), "modifier_total": sum((t - 10) // 2 for t in totals), }