Skip to main content
Glama

Roll dice

dice
Read-only

Roll dice in standard notation such as 2d6+3 or 1d20, up to 100 dice of up to 1000 sides, with a cryptographic random source. Returns every roll, the modifier and the total. Use for tabletop games and simulations. Example: roll=2d6+3. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
rollNoDice notation, e.g. 2d6+3 (default 1d6)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover safety and idempotency, but the description adds real behavioral context: cryptographic random source, per-roll return shape (every roll, the modifier, the total), and the charging model including that repeats are not free — which meaningfully explains why idempotentHint=false matters. It also states failed calls are free, which matters for retry behavior.

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?

Front-loaded with the capability, format, and limits, then usage, then pricing. Every sentence carries information, though 'Reads or computes only and changes nothing' overlaps with readOnlyHint=true and the pricing sentence is dense relative to the core purpose.

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

Completeness5/5

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

For a one-parameter tool with no output schema, the description covers input format, bounds, what is returned, safety profile, and cost — everything needed to call it correctly and predict the response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with a single documented parameter, so the baseline is 3, and the description adds bounds not present in the schema (up to 100 dice of up to 1000 sides) plus a second notation example. It doesn't restate the default (1d6), which is already in the schema.

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?

States a specific verb and resource ('Roll dice') plus the exact input format ('standard notation such as 2d6+3 or 1d20') and hard limits (100 dice, 1000 sides). This clearly separates it from siblings like random_number, random_pick, or coin, which don't take dice notation.

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

Usage Guidelines4/5

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

'Use for tabletop games and simulations' plus a concrete example ('roll=2d6+3') gives an agent a clear context for selecting it. It stops short of explicit exclusions or naming an alternative (e.g., 'for a single uniform integer use random_number'), so it isn't a full when/when-not statement.

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.