Dice Odds
dice_oddsPipeworx dice engine: the probability distribution of a dice notation (same grammar as roll_dice: 2d6+3, 4d6kh3, 2d20kl1, 4dF, 3d6!) — min, max, mean, standard deviation, mode, the probability of every total and, given target, the chance the total is >=, >, <=, < or == that target (e.g. "what are the odds of 15 or more on 3d6"). Exact by enumeration where the outcomes can be enumerated (plain sums, and keep/drop pools up to 1,000,000 outcomes); otherwise a 100,000-sample Monte Carlo estimate labelled method:"monte_carlo" (exploding dice always use it). seed makes a Monte Carlo estimate reproducible.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": 15,
"notation": "3d6",
"comparison": ">="
},
"name": "dice_odds"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Optional seed for the Monte Carlo path; exact results ignore it. Always returned. | |
| target | No | Optional target total to compute a probability for. | |
| notation | Yes | Dice notation, e.g. "3d6", "4d6kh3", "2d20kh1+5". | |
| comparison | No | How the total is compared with target (default ">="). |