Cryptographic Dice Roller API - RPG & Tabletop (d4-d1000, kh/kl/dl)
dice_rollerRoll 1-100 dice of 2-1000 sides (d4, d6, d8, d10, d12, d20, d100 or custom) using OS cryptographic randomness (secrets.randbelow), with keep-highest (kh), keep-lowest (kl), drop-lowest (dl), modifiers and multi-roll batches. Pure Python, < 5 ms, 0 AI. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/dice-roller.
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": {
"keep": "kh",
"count": 4,
"rolls": 2,
"sides": 6,
"modifier": 2,
"keepCount": 3
},
"name": "dice_roller"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep | No | all, kh (keep highest), kl (keep lowest), dl (drop lowest) | all |
| count | No | ||
| rolls | No | ||
| sides | No | ||
| modifier | No | ||
| keepCount | No |