Skip to main content
Glama

Cryptographic Dice Roller API - RPG & Tabletop (d4-d1000, kh/kl/dl)

dice_roller
Read-onlyIdempotent

Roll 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

NameRequiredDescriptionDefault
keepNoall, kh (keep highest), kl (keep lowest), dl (drop lowest)all
countNo
rollsNo
sidesNo
modifierNo
keepCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds genuinely useful context beyond that: the randomness source (secrets.randbelow), the performance envelope (<5 ms, pure Python), and the auth/rate-limit model (X-API-Key, 5 free calls/day, x402 per-call pricing). It stops short of describing the response payload, which is the main remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The capability statement is front-loaded and dense, which is good, but it is delivered as one run-on sentence followed by pricing and URL boilerplate that reads as marketing copy. The rate-limit/auth information earns some place, but the two pricing URLs and the euro/dollar figures bloat the definition relative to the invocation-relevant content.

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?

For a 6-parameter tool with 17% schema coverage and no output schema, the description covers input mechanics reasonably but never states what a roll returns — individual die faces, the kept subset, the modifier-applied total, or batch grouping. An agent can call it correctly but cannot predict or interpret the result shape without a trial call.

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?

Schema description coverage is only 17% — just the `keep` enum is documented — so the description must compensate. It does explain kh/kl/dl semantics, the modifier concept, and multi-roll batches (`rolls`), but `keepCount` (how many dice are kept when keep != all) and the interaction between `keepCount`, `count` and `modifier` are never clarified, leaving a meaningful semantic hole.

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 names a specific verb and resource ("Roll 1-100 dice of 2-1000 sides") and enumerates the supported dice types and keep/drop mechanics (kh, kl, dl). An agent knows exactly what this tool does and would not confuse it with any listed sibling, none of which involve dice.

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 title and description imply the RPG/tabletop use case, and the access tiers (5 free calls/day, API key or x402 payment) are stated. However, there is no explicit guidance on when to pick this tool over an alternative or any precondition/exclusion; usage is only implied by the domain framing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources