Skip to main content
Glama
vandewilly

MCP Dice Roller

by vandewilly

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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),
        }

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/vandewilly/mcp-dice-roller'

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