Skip to main content
Glama

Dice roller

random_dice

Roll dice with any number of faces and get every roll plus the total. Uses the platform CSPRNG with rejection sampling, so every face is equally likely - a plain modulo is biased. Standard dice notation: 3d6, 1d20. $0.005 per call, paid over x402 (USDC).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoHow many dice to roll, 1-100. Defaults to 1.
facesNoFaces per die, 2-1000000. Defaults to 6.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the RNG mechanism (platform CSPRNG with rejection sampling), guarantees fairness per face, notes the non-deterministic nature of the output, and reveals pricing ($0.005/call via x402 in USDC). It stops short of detailing error behavior or latency, but the behavioral picture is unusually complete.

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

Conciseness4/5

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

Three short sentences, front-loaded with the purpose and return value, then mechanism, then cost. The rejection-sampling remark is a slight detour but is short and justifies the fairness claim, so it earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A zero-required-parameter, non-deterministic tool with no output schema; the description compensates by describing the return (all rolls plus total), the fairness guarantee, and the payment cost. Little that an agent needs in order to call it correctly is missing.

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 100% (count 1-100 default 1; faces 2-1000000 default 6), so the schema already documents both parameters and the baseline is 3. The '3d6' notation adds only loose flavor, and it does not map cleanly onto the two separate count/faces fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Roll dice with any number of faces') and explicitly names what is returned ('every roll plus the total'). The dice/faces framing differentiates it in substance from random_number or random_coinflip, though it never names those siblings directly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to choose this over the other random_* tools (coinflip, number, pick, shuffle). The only usage-flavored content is the notation example '3d6, 1d20', which is syntax rather than selection guidance, and there are no exclusions or prerequisites.

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